<?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: LoadOnce=false Sort Fails on ClientCode</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/loadoncefalse-sort-fails-on-clientcode</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/discussion/loadoncefalse-sort-fails-on-clientcode/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on LoadOnce=false Sort Fails on ClientCode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/loadoncefalse-sort-fails-on-clientcode#p30476</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/loadoncefalse-sort-fails-on-clientcode#p30476</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>If you use loading a data from the server you should know that in this case the sorting is on the server and not in the grid.</p>
<p>In this case you will need to make your server side code so that if the grid perform sort you should send the appropriate sorted data to the grid.</p>
</p>
<p>In case of loadonce = true you actually tell the grid to load data locally and in this case the grid sort the data automatically for you.</p>
<p>Some example you can see in our<a href="/jqgridwiki/doku.php?id=wiki:first_grid" target="_blank"> documentation site</a> This is in PHP, but you will get a idea how to do this.</p>
</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 10 Apr 2014 11:30:49 +0300</pubDate>
        </item>
        <item>
        	<title>devAthlinks on LoadOnce=false Sort Fails on ClientCode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/loadoncefalse-sort-fails-on-clientcode#p30463</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/loadoncefalse-sort-fails-on-clientcode#p30463</guid>
        	        	<description><![CDATA[<p>I recently updated a project from JQGrid 4.2.0 to 4.6.0 and sort is not working. I also implemented bootstrap 3.0 and didn&#39;t make any code changes other than some minor styling so I would assume it should work but it is not. Everything else appears to be working fine except sorting.&#160; I did some research online and the common solution appears to be to set loadonce to true and I&#39;ve tried this and sorting works fine.&#160; However, I cannot set loadonce to true since our data sets can exceed 50,000 so multilple loads will be required.&#160; Some code snippets is listed below.&#160; Thanks in advance.</p>
</p>
<p>var colNames = [&#39;&#39;, &#39;&#39;, &#39;..&#39;, &#39;Name&#39;, &#39;Age&#39;, &#39;...&#39;, &#39;...&#39;, &#39;...&#39;];</p>
<p>&#160;&#160;&#160;&#160;&#160; colNames.push(&#39;Final Time&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;);</p>
<p>&#160;&#160;&#160;&#160;&#160; var colModel = [<br />...<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Name&#39;, index: &#39;Name&#39;, editable: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Age&#39;, index: &#39;Age&#39;, width: 30, align: &#39;center&#39;, editable: true },<br />....<br />&#160;&#160;&#160;&#160;&#160; ];<br />//&#160;&#160;&#160;&#160;&#160; for(var j = 0; j &#60; legIds.length; j++) {<br />//&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel.push({ name: &#39;Leg&#39; + (j + 1), index: &#39;Leg&#39; + (j + 1), editable: true, width: 70, align: &#39;right&#39; });<br />//&#160;&#160;&#160;&#160;&#160; }<br />...<br />&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; grid = $("#grid");<br />&#160;&#160;&#160;&#160;&#160; grid.jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/Results/GetData?&#38;courseid=&#39; + courseID,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; prmNames: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rows: &#39;pageSize&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sort: &#39;sortOrder&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; order: &#39;sortDir&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; nd: null<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader : {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id : &#39;ID&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: &#39;entries&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: colNames,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: colModel,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; altRows: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellEdit: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellsubmit: &#39;clientArray&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grouping: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; toolbar: [false, &#39;top&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; toppager: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 25,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // rowTotal: 50,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [25, 50, 100, 250],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: onGridSelectRow,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ondblClickRow: onGridDblClickRow,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onPaging: onGridPaging,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadComplete: onGridLoadComplete<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
]]></description>
        	        	<pubDate>Mon, 07 Apr 2014 21:29:23 +0300</pubDate>
        </item>
</channel>
</rss>