<?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: Sort the data locally each time its obtained from server</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/sort-the-data-locally-each-time-its-obtained-from-server</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/sort-the-data-locally-each-time-its-obtained-from-server/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rtordable on Sort the data locally each time its obtained from server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sort-the-data-locally-each-time-its-obtained-from-server#p5631</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sort-the-data-locally-each-time-its-obtained-from-server#p5631</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>Finally the solution was the following code in the gridComplete or loadComplete method:</p>
<p>&#160;$("#jqGridTable").setGridParam({datatype:"local"})<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .trigger("reloadGrid")<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .setGridParam({datatype:"json"});</p>
<p>That was not exactly the solution I was looking because the jqGrid table fills two times the data on the table, the first one when gets de data from the server -addJSONData- and the second one when it is sorted locally.</p>
<p>I thought that jqGrid could sort the JSON data object before it is filled on the table, maybe in future versions.</p>
<p>Nevertheless, Tony your plugin it&#39;s great ... congratulations !!!.</p>
<p>Thanks and regards.</p>
<p>Ram&#243;n</p></p>
]]></description>
        	        	<pubDate>Thu, 26 Mar 2009 06:06:02 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Sort the data locally each time its obtained from server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sort-the-data-locally-each-time-its-obtained-from-server#p5601</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sort-the-data-locally-each-time-its-obtained-from-server#p5601</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Try to use gridComplete method where you can call sortData method - it is exactly what you want - do not use loadonce.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 25 Mar 2009 11:18:48 +0200</pubDate>
        </item>
        <item>
        	<title>rtordable on Sort the data locally each time its obtained from server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sort-the-data-locally-each-time-its-obtained-from-server#p5561</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sort-the-data-locally-each-time-its-obtained-from-server#p5561</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>If I use loadonce:true de data only is obtained from the server once.&#160;</p>
<p>I wanted that each time the user &#39;refresh&#39; the table through the navigation bar or &#39;sorts&#39; de data clicking a column header, jqGrid gets the server data through AJAX and sort it in client side BEFORE populating the rows on the table.&#160; Is that possible?</p>
<p>Thanks and regards.</p>
<p>Ram&#243;n</p>
]]></description>
        	        	<pubDate>Tue, 24 Mar 2009 05:25:27 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Sort the data locally each time its obtained from server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sort-the-data-locally-each-time-its-obtained-from-server#p5424</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sort-the-data-locally-each-time-its-obtained-from-server#p5424</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Use loadonce:true - see docs</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 19 Mar 2009 05:13:28 +0200</pubDate>
        </item>
        <item>
        	<title>rtordable on Sort the data locally each time its obtained from server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sort-the-data-locally-each-time-its-obtained-from-server#p5405</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sort-the-data-locally-each-time-its-obtained-from-server#p5405</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>My table obtains and refresh the JSON data from the server - datatype: &#39;json&#39; - but it can&#39;t be sorted on it.&#160; I&#39;d like that jqGrid before populating the server data on the table could sort it using the colModel criterias, the same way when the datatype is local.&#160; Is that possible?.</p>
<p>Thanks in advance.</p>
<p>Ram&#243;n</p>
]]></description>
        	        	<pubDate>Tue, 17 Mar 2009 12:18:15 +0200</pubDate>
        </item>
</channel>
</rss>