﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Reconfigure the "Enter" key functions on EditMode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Reconfigure-the-Enter-key-functions-on-EditMode/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Reconfigure the "Enter" key functions on EditMode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Reconfigure-the-Enter-key-functions-on-EditMode/</link><pubDate>Tue, 01 Sep 2009 06:16:59 GMT</pubDate><dc:creator>james</dc:creator><description>&lt;p&gt;Zahid, not sure if this will help, but you can try to reduce the timeout length that invokes the method, from 500 to 50. See if that reduces or eliminates the flickering issue.&lt;/p&gt;</description></item><item><title>Reconfigure the "Enter" key functions on EditMode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Reconfigure-the-Enter-key-functions-on-EditMode/</link><pubDate>Tue, 01 Sep 2009 04:22:58 GMT</pubDate><dc:creator>Zahid</dc:creator><description>&lt;p&gt;Hi James,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks for your post. I have column freezing enabled.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When i have one or more columns frozen then there is no flickering and everything works fine. Otherwise not&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Did you mean that, there should be no flicker even if we dont have any column frozen and just freezing is enabled?&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Zahid &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Reconfigure the "Enter" key functions on EditMode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Reconfigure-the-Enter-key-functions-on-EditMode/</link><pubDate>Mon, 31 Aug 2009 07:19:24 GMT</pubDate><dc:creator>james</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;When i have columns outside the viewable area and the horizontal scrollbar is enabled. Then when i select the next row, the horizontal scroll bar flickers. that is, it goes to position 0 (zero) and comes back to appropriate position to focus the highlighted cell. I want to keep the scroll bar fixed.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any idea of this?&amp;nbsp; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Zahid&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; Zahid, do you have column freezing enabled? The row selection and cell selection should be running synchronously so the horizontal scrolling/flickering shouldn't be noticed. &lt;/p&gt;</description></item><item><title>Reconfigure the "Enter" key functions on EditMode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Reconfigure-the-Enter-key-functions-on-EditMode/</link><pubDate>Mon, 31 Aug 2009 03:13:20 GMT</pubDate><dc:creator>gordont</dc:creator><description>&lt;p&gt;Hi Zahid,&lt;/p&gt;
&lt;p&gt;I am really sorry but its the default behaviour of WebGrid if we select a row the focus will be on first cell. &lt;/p&gt;
&lt;p&gt;If you want you can use AutoFit columns in the WebGrid it will make all the column fit in the WeBgrid without horizontal scrollbar.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;</description></item><item><title>Reconfigure the "Enter" key functions on EditMode</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Reconfigure-the-Enter-key-functions-on-EditMode/</link><pubDate>Thu, 27 Aug 2009 10:19:38 GMT</pubDate><dc:creator>Zahid</dc:creator><description>&lt;p&gt;I need the behaviour of MS Excel while editing the grid cells. After users modified a cell content followed by pressing Enter key the
next cell at the next row (rowIndex&amp;#43;1) at the same column will be
directly highlighted.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I got a solution from&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;http://support.intersoftpt.com/docs/webgrid/5.0.7200/Reconfigure%20the%20Enter%20key%20functions%20on%20EditMode.html &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; It is as follows&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnEditKeyDown(controlId)&lt;br /&gt;{&lt;br /&gt;   if(event.keyCode == 13) {&lt;br /&gt;    //cancel the event as it'll be handled manually&lt;br /&gt;    event.returnValue = false;&lt;br /&gt;   &lt;br /&gt;    var grid = ISGetObject("WebGrid1");&lt;br /&gt;   &lt;br /&gt;    //get currently active edit cell&lt;br /&gt;    var ac = grid.GetActiveEditCell();&lt;br /&gt;   &lt;br /&gt;    if(ac.rowElement.type == "Record") {&lt;br /&gt;     //get the table object&lt;br /&gt;     var tbl = grid.Tables[ac.tblName];&lt;br /&gt;     grid.ExitEdit(1,0,0) // exit and update the row if dirty&lt;br /&gt;                        &lt;/pre&gt;&lt;pre&gt;     //find out if the table of current row is parent&lt;br /&gt;     var isParent = (tbl.GetChildTables().length &amp;gt; 0)?true : false;&lt;br /&gt;    &lt;br /&gt;     window.setTimeout(function() {SelectNext(ac, isParent);},500);&lt;br /&gt;    &lt;br /&gt;     //you can try to remove this line if you receive a javascript error&lt;br /&gt;     return false;&lt;br /&gt;    }&lt;br /&gt;   }&lt;br /&gt;   return true;&lt;br /&gt;  }&lt;br /&gt; &lt;br /&gt;  function SelectNext(ac, isParent) {&lt;br /&gt;   var curRow = ac.rowElement;&lt;br /&gt;   var tblElm = wgGetTable(curRow);&lt;br /&gt;   var curRowIndex = curRow.rowIndex;&lt;br /&gt;  &lt;br /&gt;   //if a table is a parent, the index numbering increases by 2&lt;br /&gt;   var i = (isParent)? 2 : 1;&lt;br /&gt;  &lt;br /&gt;   //check if current row is the last row of the table&lt;br /&gt;   if(curRowIndex &amp;lt; tblElm.rows.length-i){&lt;br /&gt;    //get destination now&lt;br /&gt;    var destRow = wgGetRowByPosition(tblElm, curRowIndex&amp;#43;i);&lt;br /&gt;   &lt;br /&gt;    //highlight the destination row&lt;br /&gt;    //wgHighlightROw(destRow);&lt;br /&gt;   &lt;br /&gt;    //get the column name&lt;br /&gt;    var cellName = wgGetColNameByCell(ac.element);&lt;br /&gt;   &lt;br /&gt;    //get the destination cell&lt;br /&gt;    var destCell = wgGetCellByName(destRow, cellName);&lt;br /&gt;  &lt;br /&gt;    //select nextRow and highlight the destination cell&lt;br /&gt;    window.setTimeout(function() { MoveRow(destRow,destCell);}, 500);&lt;br /&gt;   &lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt; &lt;br /&gt;  function MoveRow(destRow, destCell)&lt;br /&gt;  {&lt;br /&gt;   &lt;strong&gt;wgGetRowByElement(destRow).Select()&lt;/strong&gt;;&lt;br /&gt;   wgHighlightEditCell(destCell);&lt;br /&gt;  }  &lt;br /&gt;                        &lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The proble with this is in wgGetRowByElement(destRow).Select() &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When i have columns outside the viewable area and the horizontal scrollbar is enabled. Then when i select the next row, the horizontal scroll bar flickers. that is, it goes to position 0 (zero) and comes back to appropriate position to focus the highlighted cell. I want to keep the scroll bar fixed.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any idea of this?  &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Zahid &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>