<?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: Table Refresh?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/table-refresh</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/table-refresh/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Table Refresh?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/table-refresh#p4210</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/table-refresh#p4210</guid>
        	        	<description><![CDATA[<p>Hell,</p>
<p>As you see here you try to CREATE every time the grid after some interval - right?</p>
<p>This will not work after first time since there is a checking if the grid exists.</p>
<p>If the grid exists and you try to create it again nothing will be happen.</p>
<p>In you case I recommend you to check if the grid exist first</p>
<p>also in your ajax function</p>
<p>if(grid does not exists) {</p>
<p>//create the grid here</p>
<p>} else {</p>
<p>// triger to reload the grid</p>
<p>}</p>
</p>
<p>To check if the grid exists:</p>
<p>var mygrid&#160; = $("#migrid")[0];</p>
<p>if(mygrid.grid) // grid exists</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 29 Jan 2009 06:14:02 +0200</pubDate>
        </item>
        <item>
        	<title>notsoceo on Table Refresh?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/table-refresh#p4191</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/table-refresh#p4191</guid>
        	        	<description><![CDATA[<p>ahh&#8230;sorry, I forgot to mention, I want to load and use the xml file for processing in addition to jqGrid. In other words, grab the file and process it using jqGrid and then process it using something else to present non-grid data.</p>
<p>Thanks again in advance,</p>
<p>Chris</p>
]]></description>
        	        	<pubDate>Tue, 27 Jan 2009 20:40:15 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Table Refresh?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/table-refresh#p4169</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/table-refresh#p4169</guid>
        	        	<description><![CDATA[<p>Hello</p>
<p>$(&#8221;#mygrid&#8221;).jqGrid({&#8230;..});</p>
<p>setInterval(function() { $(&#8221;#mygrid&#8221;).trigger(&#8221;reloadGrid&#8221;);},5000);</p>
<p>Also search this forum, there is a working exmple here.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 27 Jan 2009 03:58:27 +0200</pubDate>
        </item>
        <item>
        	<title>notsoceo on Table Refresh?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/table-refresh#p4165</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/table-refresh#p4165</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m new to jqGrid and I&#39;m having a little trouble.</p>
<p>I&#39;m trying to constantly refresh a changing data source.</p>
<p>Here&#39;s my code:</p>
<p>&#160;&#160;&#160;&#160;&#160; setInterval(function (){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:&#39;datatest.php&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cache: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; success: function(testdata) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#list1").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datastr: testdata,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "xmlstring",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;ColA&#39;,&#39;ColB&#39;, &#39;ColC&#39;, &#39;ColD&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ColA&#39;, xmlmap:"COLA"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ColB&#39;, xmlmap:"COLB"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ColC&#39;, xmlmap:"COLC"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ColD&#39;, xmlmap:"COLD"}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadtext: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height:&#39;100%&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root:"ROOT",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; row:"ROWS",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: 1,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: 1,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "SESSION&#62;rows",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption:"Table Refresh Test"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160; })<br />&#160;&#160;&#160;&#160;&#160; }, 5000);</p>
</p>
<p>The table loads fine but will not refresh. I can see the jQuery ajax requests completing in the Firebug Console but the table contents remain stale. Moreover, I added .trigger("reloadGrid") without any success other than I saw the red "Loading..." box every 5 seconds but the data did not update.</p>
</p>
<p>Thanks in advance,</p>
<p>Chris</p></p>
]]></description>
        	        	<pubDate>Mon, 26 Jan 2009 23:40:31 +0200</pubDate>
        </item>
</channel>
</rss>