<?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: LiveGrid - Loop updateGridRows</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/livegrid-loop-updategridrows</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/livegrid-loop-updategridrows/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jwinns on LiveGrid - Loop updateGridRows</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/livegrid-loop-updategridrows#p20850</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/livegrid-loop-updategridrows#p20850</guid>
        	        	<description><![CDATA[<p>I have already tried like that:</p>
<p>
&#160;&#160;&#160; complete: function(jsondata, stat) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (stat == "success") {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var thegrid = jQuery("#list")[0];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; thegrid.updateGridRows(JSON.parse(jsondata.responseText).d, "id", true);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; },</p>
<p>but it does not work, only the last returned rows are in the Grid.</p>
<p>please help<img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /></p>
</p>
<p>JAY</p>
]]></description>
        	        	<pubDate>Tue, 16 Nov 2010 17:18:12 +0200</pubDate>
        </item>
        <item>
        	<title>jwinns on LiveGrid - Loop updateGridRows</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/livegrid-loop-updategridrows#p20849</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/livegrid-loop-updategridrows#p20849</guid>
        	        	<description><![CDATA[<p>Server-Side is ready.</p>
<p>the json url call first returns the full set of rows:</p>
<blockquote>
<p>{"userdata": 1289918647843, "total": 2, "rows": [{"cell": ["1", "None", "8", "yes", "ddddddd", "ddddddddddddddddd", "dddddddddddddddd", "ddddddddddddddddddddd", "True", "True", "ddddddddddddddd", "9999999999999"], "id": 1}, {"cell": ["2", "", "0", "test", "jjjjjjjjjjjjj", "jjjjjjjjjjjjjjj", "jjjjjjjjjjjjjjjjj", "jjjjjjjjjjjjjjjjjjjjjjjjj", "True", "True", "jjjjjjjjjj", "None"], "id": 2}, {"cell": ["3", "", "3", "test", "", "", "", "", "False", "False", "", "None"], "id": 3}, {"cell": ["4", "", "None", "ddd", "", "", "", "", "False", "False", "", "None"], "id": 4}, {"cell": ["5", "", "None", "fffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "", "", "", "", "False", "False", "", "None"], "id": 5}, {"cell": ["6", "", "None", "alt2", "", "", "", "", "False", "False", "", "None"], "id": 6}, {"cell": ["7", "", "None", "hure", "", "", "", "", "False", "False", "", "None"], "id": 7}, {"cell": ["8", "", "None", "8", "", "", "", "", "False", "False", "", "None"], "id": 8}, {"cell": ["9", "", "None", "8888", "", "", "", "", "False", "False", "", "None"], "id": 9}, {"cell": ["10", "", "None", "10", "", "", "", "", "False", "False", "", "None"], "id": 10}], "page": 1, "records": 13}</p>
</p>
</blockquote>
<p>and after that it returns timestamp filtered results( To be updated in the Grid):</p>
<p>{"userdata": 1289919036281, "total": 1, "rows": [{"cell": ["1", "None", "newvalue", "newvalue", "ddddddd", "ddddddddddddddddd", "dddddddddddddddd", "ddddddddddddddddddddd", "True", "True", "ddddddddddddddd", "9999999999999"], "id": 1}, {"cell": ["13", "", "None", "newvalue", "", "", "", "", "False", "False", "", "9999999999999"], "id": 9}], "page": 1, "records": 2}</p>
<p>I need to know, how to update the Rows with every json url call, while keeping the first result. Is there any Solution for that?</p>
<p>Thanks.</p>
<p>JAY</p>
]]></description>
        	        	<pubDate>Tue, 16 Nov 2010 16:59:40 +0200</pubDate>
        </item>
        <item>
        	<title>jwinns on LiveGrid - Loop updateGridRows</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/livegrid-loop-updategridrows#p20782</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/livegrid-loop-updategridrows#p20782</guid>
        	        	<description><![CDATA[<p>Hi,<br />is there a way JqGrid (jsonreader) first get all records (of course) and then in a loop only get, on there server changed records and update them in the Grid? And how, with updateGridRows or addJSONData, ?<br />By now I do it like that, but this only reloads the Grid in a loop and every time loadComlpete it gets the full Dataset(and there is an Problem when Scroll is=true,then the Grid gets empty while new data is requested):</p>
</p>
<blockquote>
<p>jQuery(document).ready(function(){jQuery("#list").jqGrid({ <br />url:&#39;test.html&#39;,<br />datatype: "json",<br />colNames: any,<br />colModel: any, <br />rowNum:10,<br />rowList:[20,50,100], <br />pager: &#39;#pager&#39;, <br />scroll:true,<br />loadComplete: function () {</p>
<p>&#160;&#160;&#160; setTimeout(function(){<br />&#160;&#160;&#160;&#160; jQuery("#list").jqGrid().trigger("reloadGrid", [{current:true}]);<br />&#160;&#160;&#160;&#160; return false;</p>
<p>}, 1000);</p>
<p>},&#160; &#160;<br />loadError: function () {</p>
<p>&#160;&#160;&#160; setTimeout(function(){<br />&#160;&#160;&#160;&#160; jQuery("#list").jqGrid().trigger("reloadGrid", [{current:true}]);<br />&#160;&#160;&#160;&#160; return false;</p>
<p>}, 15000);</p>
<p>},&#160; &#160;<br />caption: "any", <br />viewrecords: true,<br />gridview: true, <br />height: any,<br />width: any,<br />loadui:"disabled",});<br />jQuery("#list").jqGrid(&#39;navGrid&#39;,&#39;#list_pager&#39;,{search:true,add:false,edit:false,del:false});<br />});</p>
</blockquote>
<p>THX</p>
</p>
<p>JAY</p>
]]></description>
        	        	<pubDate>Fri, 12 Nov 2010 19:12:40 +0200</pubDate>
        </item>
</channel>
</rss>