﻿<?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 - wgGetNextEditableCell() issue </title><link>http://www.intersoftsolutions.com/Community/WebGrid/wgGetNextEditableCell-issue/</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>wgGetNextEditableCell() issue </title><link>http://www.intersoftsolutions.com/Community/WebGrid/wgGetNextEditableCell-issue/</link><pubDate>Tue, 12 Oct 2010 23:38:00 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><category>edit</category><category>cell</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I made a simple test page based on the snippet code on your first post of this thread. Minor modification was made on your code and I was unable to repro the issue on my local test.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;function&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;button1_onclick() {&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: green; font-size: 9pt"&gt;//get the grid object&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;WebGrid1 = ISGetObject(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"WebGrid1"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;);&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: green; font-size: 9pt"&gt;//get current active edit cell index&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;curCellIndex = WebGrid1.GetActiveEditCell().cellIndex;&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: green; font-size: 9pt"&gt;//get current active edit cell element&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;curCellElm = WebGrid1.GetActiveEditCell().ToCellObject().GetElement();&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;curCellElm2 = WebGrid1.GetSelectedObject().ToRowObject().GetCell(curCellIndex - 1).GetElement(WG40.BODY, WG40.HTMLCELL);&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: green; font-size: 9pt"&gt;//get next editable cell object&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;nextCellObj = wgGetNextEditableCell(curCellElm);&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: green; font-size: 9pt"&gt;//get next editable cell element&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;nextCellElm = nextCellObj.element;&lt;/span&gt;

    alert(nextCellObj);
    alert(nextCellElm.innerText);

    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;return true&lt;/span&gt;;
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please have the snippet code shown above tested on your end and let me know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>wgGetNextEditableCell() issue </title><link>http://www.intersoftsolutions.com/Community/WebGrid/wgGetNextEditableCell-issue/</link><pubDate>Mon, 11 Oct 2010 23:20:03 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>edit</category><category>cell</category><description>&lt;p&gt;&lt;strong&gt;I want to&amp;nbsp;get next cell from one&amp;nbsp;edit cell&lt;/strong&gt; by the way "wgGetNextEditableCell() ",but it does not work!&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;var grid = ISGetObject("WebGrid1");&lt;br /&gt;var curCell = grid.GetActiveEditCell().cellIndex;&lt;br /&gt;var Tcell = grid.GetSelectedObject().ToRowObject().GetCell(curCell - 1).GetElement(WG40.BODY, WG40.HTMLCELL);
 var NextcellElement = wgGetNextEditableCell(Tcell);
 var cellObj = wgGetCellByElement(NextcellElement);
alert(NextcellElement)&lt;br /&gt;alert(Tcell.innerText)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &lt;/pre&gt;
&lt;p&gt;&lt;span style="background-color: #fffce1; font-family: courier new"&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>