<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Reload Row?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/reload-row</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/reload-row/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>glittle on Reload Row?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reload-row#p18865</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reload-row#p18865</guid>
        	        	<description><![CDATA[<p>Thanks for the advice...</p>
<p>I now track which cell I am editing in the "beforeEditCell" and save the info in a global variable:</p>
<p style="padding-left: 30px;">beforeEditCell: function (rowid, cellname, value, iRow, iCol) { _cellInEdit = { row: iRow, col: iCol }; }</p>
<p>I then use "afterSubmitCell" and, when needed, call:</p>
<p style="padding-left: 30px;">grid.setRowData(rowid, info.Data, null);</p>
<p>to set the data for the entire row to the new data I just got from the server in "info.Data".</p>
<p>In "afterSubmitCell" I also determine if the "_cellInEdit" is different from the one the "afterSubmitCell" was submitting. If it is different, user must have moved from one input cell to another... In that case, I restore the cell (sinces its value may have changed).</p>
<p style="padding-left: 30px;">var newRow = _cellInEdit.row;<br />var newCol = _cellInEdit.col;</p>
<p style="padding-left: 30px;">if (newRow != iRow &#124;&#124; newCol != iCol) {<br />&#160;&#160;&#160;&#160; setTimeout(&#39;$("#results").restoreCell(&#39; + newRow + &#39;, &#39; + newCol + &#39;)&#39;, 0);<br />}</p></p>
]]></description>
        	        	<pubDate>Thu, 29 Jul 2010 21:01:51 +0300</pubDate>
        </item>
        <item>
        	<title>DroidDr on Reload Row?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reload-row#p18148</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reload-row#p18148</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>Perhaps you can use a grid event like afterSubmitCell. Using the rowid of the event, you can do a request to the server to get the latest data. Would that work for you?</p>
</p>
<p>If you are not submitting to the server, you could use afterSaveCell and then from there do a request to the server?</p>
</p>
<p>After getting the data you can use the&#160;method setRowData.</p>
</p>
<p>I Hope this helps.</p></p>
]]></description>
        	        	<pubDate>Wed, 23 Jun 2010 20:00:08 +0300</pubDate>
        </item>
        <item>
        	<title>glittle on Reload Row?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reload-row#p18092</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reload-row#p18092</guid>
        	        	<description><![CDATA[<p>Thanks Tony.</p>
<p>Currently, I am reloading the entire grid after editing...</p>
<p>Is there any method that can be used to reload one row?</p>
<p>I can send the data from the server in any format that might be needed...</p>
<p>Thanks,</p>
<p>Glen</p>
]]></description>
        	        	<pubDate>Sun, 20 Jun 2010 18:14:21 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Reload Row?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reload-row#p18069</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reload-row#p18069</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Not sure if this can be done automatically from the grid</p>
<p>Regards</p></p>
]]></description>
        	        	<pubDate>Sun, 20 Jun 2010 11:36:32 +0300</pubDate>
        </item>
        <item>
        	<title>glittle on Reload Row?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reload-row#p17935</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reload-row#p17935</guid>
        	        	<description><![CDATA[<p>Is there a way to reload only one row from the server?</p>
<p>I am using Cell Editing, and after editing some cells, I need to reload the entire row of data. (To see updated data from server.)</p>
<p>Can this be done automatically with Cell Editing?</p>
<p>If not, is there a method to reload one row from the server?</p>
<p>Thanks,</p>
<p>Glen</p>
]]></description>
        	        	<pubDate>Wed, 16 Jun 2010 00:14:47 +0300</pubDate>
        </item>
</channel>
</rss>