<?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: trigger('reloadGrid')  not updating data in grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/triggerreloadgrid-not-updating-data-in-grid</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/triggerreloadgrid-not-updating-data-in-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tm_scripter on trigger('reloadGrid')  not updating data in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/triggerreloadgrid-not-updating-data-in-grid#p26471</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/triggerreloadgrid-not-updating-data-in-grid#p26471</guid>
        	        	<description><![CDATA[<p>SOLVED.</p>
<p>I can keep the loadonce=true, so sorting and filtertoolbar work.</p>
</p>
<p>The piece that was missing is to include datatype: "json" in the gridParam:&#160;</p>
</p>
<p>$("#resultsTable").jqGrid(&#39;setGridParam&#39;,{url:"mycontroller/searchdata", datatype:"json", page:1}).trigger("reloadGrid");</p>
]]></description>
        	        	<pubDate>Thu, 26 Apr 2012 02:29:25 +0300</pubDate>
        </item>
        <item>
        	<title>tm_scripter on trigger('reloadGrid')  not updating data in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/triggerreloadgrid-not-updating-data-in-grid#p26470</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/triggerreloadgrid-not-updating-data-in-grid#p26470</guid>
        	        	<description><![CDATA[<p>I was able to reload the grid successfully with trigger.(&#39;reloadGrid&#39;), BUT only if I comment out the line:</p>
<p>loadonce=true,</p>
</p>
<p>I need the loadonce=true in order for the sorting and filtertoolbar to work....so how can I enable the grid to support both functionality? &#160;ie, ability to reloadGrid AND sort locally.</p>
]]></description>
        	        	<pubDate>Thu, 26 Apr 2012 01:47:26 +0300</pubDate>
        </item>
        <item>
        	<title>tm_scripter on trigger('reloadGrid')  not updating data in grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/triggerreloadgrid-not-updating-data-in-grid#p26469</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/triggerreloadgrid-not-updating-data-in-grid#p26469</guid>
        	        	<description><![CDATA[<p>I have been having some success with jqgrid. &#160;I am using version 4.3.2</p>
<p>I am able to create the grid in the document ready function and it works well, using:</p>
<p>$(document).ready(function(){</p>
<p>$("#resultsTable").jqGrid({</p>
<p>url:&#39;mycontroller/myfunction&#39;,</p>
<p>mtype : "GET",</p>
<p>datatype: "json",&#160;</p>
<p>&#160;loadonce: true,&#160; &#160; &#160; &#160; &#160;</p>
<p>......(more jqgrid definitions here).....</p>
<p>&#160;});</p>
<p>&#160;});&#160;</p>
</p>
<p>The problem I am encountering is refreshing/reloading the grid.</p>
<p>For example if I define a new array:</p>
<p>myDataR= &#160; [ &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>{Date:"2000-11-01", &#160;CoName:"name1", &#160;Type:"Re"},</p>
<p>{Date:"2000-11-01", &#160;CoName:"name2", Type:"Le"}, &#160;</p>
<p>{Date:"2000-11-01", &#160;CoName:"name3", Type:"Ce"}, &#160;&#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>]</p>
</p>
<p>and try to populate the grid with the data using:</p>
<p>&#160;$("#resultsTable").jqGrid(&#39;setGridParam&#39;,{data:mydataR}).trigger(&#39;reloadGrid&#39;);</p>
<p>nothing happens.<img class="spSmiley" style="margin:0" title="Frown" src="/blog/wp-content/forum-smileys/sf-frown.gif" alt="Frown" /></p>
</p>
<p>I have also tried using:&#160;</p>
<p>$("#resultsTable").jqGrid.addRowData("1", mydataR);</p>
<p>which also does not work.</p>
</p>
<p>Please help.</p>
]]></description>
        	        	<pubDate>Wed, 25 Apr 2012 23:16:46 +0300</pubDate>
        </item>
</channel>
</rss>