<?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: Sorting data after 'addRowData'</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata</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/sorting-data-after-addrowdata/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Sorting data after 'addRowData'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20605</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20605</guid>
        	        	<description><![CDATA[<p>Sorry liny, but you write no time about any radio button sortBy. If you use some external elements for jqGrid sorting and place the data not one during creating the grid as you write it is <strong>absolutely another situation</strong>.</p>
<p>If you want reload the grid with new data you should probably place setGridParam inside of &#39;change&#39; or &#39;click&#39; event handler. Moreover refreshing of jqGrid indexes with $("#myXXTable")[0].refreshIndex(); could be also required after this data settings.</p>
<p>Regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 01 Nov 2010 14:42:35 +0200</pubDate>
        </item>
        <item>
        	<title>liny on Sorting data after 'addRowData'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20604</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20604</guid>
        	        	<description><![CDATA[<p>Hi, thanks for your guys.</p>
<p>Finally! Last line code below is the answer.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4287' value='Select Code' data-codeid='sfcode4287' /></p>
<div class='sfcode' id='sfcode4287'>&#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; $(&#34;#myXXTable&#34;).jqGrid({<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; data:cumAgeArray,<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; datatype: &#34;local&#34;,<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; rowNum:10,<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; autowidth: true,<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; height:&#39;500&#39;,<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; hidegrid:false,<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; deselectAfterSort:false,<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; colNames:[&#39;FACILITY&#39;,&#39;DEVICE&#39;, &#39;LOT&#39;, &#39;QTY&#39;,&#39;CUM AGE&#39;, &#39;RESIDUAL&#39;, &#39;OTD_TYPE&#39;],<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; colModel:[ {name:&#39;facility&#39;,index:&#39;facility&#39;, sortable:false, hidden: true},<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; {name:&#39;device&#39;,index:&#39;device&#39;, sortable:false, hidden: true},<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; {name:&#39;lot&#39;,index:&#39;id&#39;, align:&#34;center&#34;, sorttype:&#34;text&#34;, key:true},<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; {name:&#39;qty&#39;,index:&#39;qty&#39;, align:&#34;right&#34;,sorttype:&#34;int&#34;},<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; {name:&#39;cumAge&#39;,index:&#39;cumAge&#39;, align:&#34;right&#34;,sorttype:&#34;float&#34;},<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; {name:&#39;residual&#39;,index:&#39;residual&#39;, align:&#34;center&#34;,sorttype:&#34;text&#34;},<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; {name:&#39;otdType&#39;,index:&#39;otdType&#39;, align:&#34;center&#34;,sorttype:&#34;text&#34;}<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; ],<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; multiselect: false,<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; pager:&#39;#pager&#39;,<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; sortname:&#39;cumAge&#39;,<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; sortorder:$(&#39;input:radio[name=sortBy]:checked&#39;).val(),<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; caption: &#34;Lot Cum Age Report - &#34; + device<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; });<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; <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; $(&#34;#myXXTable&#34;).setGridParam({data:cumAgeArray, rowNum:cumAgeArray.length, sortorder:$(&#39;input:radio[name=sortBy]:checked&#39;).val()}).trigger(&#34;reloadGrid&#34;);</div>
]]></description>
        	        	<pubDate>Mon, 01 Nov 2010 14:16:49 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Sorting data after 'addRowData'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20601</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20601</guid>
        	        	<description><![CDATA[<p>If every element of your data from <strong>cumAgeArray</strong> would be have an additional property <strong>id</strong>&#160;you can use <strong>data</strong> parameter of jqGrid to place the data at the initialization time in the grid. Hot I can see now you use <strong>key:true</strong> for the <strong>lot</strong> column. If your evry data row has really unique data in this column, then you don&#39;t need use additional property&#160;<strong>id</strong>&#160;and just add <strong>data: cumAgeArray</strong> as additional parameter of jqGrid (I suppose that elements of <strong>cumAgeArray</strong>&#160;has the same properties as the name properties from the <strong>colModel</strong>).</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 01 Nov 2010 13:38:08 +0200</pubDate>
        </item>
        <item>
        	<title>liny on Sorting data after 'addRowData'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20599</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20599</guid>
        	        	<description><![CDATA[<blockquote>
<p>OlegK said:</p>
<p>If you don&#39;t want to add information about ids to the data which you add you can force sorting with a simple reloading of grid:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7327' value='Select Code' data-codeid='sfcode7327' /></p>
<div class='sfcode' id='sfcode7327'>$(&#34;#myXXTable&#34;).trigger(&#34;reloadGrid&#34;);</div>
<p>or</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4637' value='Select Code' data-codeid='sfcode4637' /></p>
<div class='sfcode' id='sfcode4637'>$(&#34;#myXXTable&#34;).setGridParam({rowNum:16}).trigger(&#34;reloadGrid&#34;);</div>
<p>I hope that it will work.</p>
<p>Best regards</p>
<p>Oleg</p>
</blockquote>
<hr />
<p>Hi,</p>
</p>
<p>I don&#39;t quite understand what the "add information about ids" is, could you kindly explain more detail? Thank you very much.</p>
]]></description>
        	        	<pubDate>Mon, 01 Nov 2010 11:42:48 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Sorting data after 'addRowData'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20571</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20571</guid>
        	        	<description><![CDATA[<p>If you don&#39;t want to add information about ids to the data which you add you can force sorting with a simple reloading of grid:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4392' value='Select Code' data-codeid='sfcode4392' /></p>
<div class='sfcode' id='sfcode4392'>$(&#34;#myXXTable&#34;).trigger(&#34;reloadGrid&#34;);</div>
<p>or</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1861' value='Select Code' data-codeid='sfcode1861' /></p>
<div class='sfcode' id='sfcode1861'>$(&#34;#myXXTable&#34;).setGridParam({rowNum:16}).trigger(&#34;reloadGrid&#34;);</div>
<p>I hope that it will work.</p>
<p>Best regards</p>
<p>Oleg</p>
]]></description>
        	        	<pubDate>Sat, 30 Oct 2010 01:20:45 +0300</pubDate>
        </item>
        <item>
        	<title>liny on Sorting data after 'addRowData'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20564</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20564</guid>
        	        	<description><![CDATA[<p>Hi, Tony,</p>
<p>I modified the javascript:</p>
<p>&#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; myGrid=$("#myXXTable").jqGrid({<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; 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; rowNum:16,<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; colNames:[&#39;FACILITY&#39;,&#39;DEVICE&#39;, &#39;LOT&#39;, &#39;QTY&#39;,&#39;CUM AGE&#39;],<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; colModel:[ {name:&#39;facility&#39;,index:&#39;facility&#39;, width:100, sortable:false, hidden: true},<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; {name:&#39;device&#39;,index:&#39;device&#39;, width:100, sortable:false, hidden: true},<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; {name:&#39;lot&#39;,index:&#39;lot&#39;, width:100, align:"center", sorttype:"string", key:true},<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; {name:&#39;qty&#39;,index:&#39;qty&#39;, width:100, align:"right",sorttype:"int"},<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; {name:&#39;cumAge&#39;,index:&#39;cumAge&#39;, width:100, align:"right",sorttype:"float", firstsortorder:"asc"}<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; ],<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; sortname:&#39;cumAge&#39;,<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; sortorder:&#39;asc&#39;,<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; multiselect: false,<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; caption: "Lot Cum Age Report &#8211; " + device<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; });</p>
<p>&#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; $(&#39;#myXXTable&#39;).jqGrid(&#39;clearGridData&#39;);</p>
<p>&#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; for(var i=0;i&#60;=cumAgeArray.length;i++)<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; {<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; $("#myXXTable").jqGrid(&#39;addRowData&#39;,i+1,cumAgeArray[i]);<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; }</p>
<p>It still doesn&#39;t work.</p>
<p>I just want to automative sort "cumAge" column asc after "addRowData", not user click the column to sort on the web page.</p>
<p>Any hint is welcome. Thanks in advance.</p>
]]></description>
        	        	<pubDate>Fri, 29 Oct 2010 18:05:50 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Sorting data after 'addRowData'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20559</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20559</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The grid does not know which data act as ID.</p>
<p>Please set key:true for a field that should &#160;do this and you will happy or configure the localReader&#160;</p>
<p>/jqgridwiki/doku.php?id=wiki:retrieving_data&#38;s[]=localreader#array_data</p>
</p>
<p>regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 29 Oct 2010 12:58:25 +0300</pubDate>
        </item>
        <item>
        	<title>liny on Sorting data after 'addRowData'</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20558</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-data-after-addrowdata#p20558</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>Below is my javascript:</p>
<p>&#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; myGrid=$("#myXXTable").jqGrid({<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; 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; rowNum:16,<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; colNames:[&#39;FACILITY&#39;,&#39;DEVICE&#39;, &#39;LOT&#39;, &#39;QTY&#39;,&#39;CUM AGE&#39;],<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; colModel:[ {name:&#39;facility&#39;,index:&#39;facility&#39;, width:100, sortable:false, hidden: true},<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; {name:&#39;device&#39;,index:&#39;device&#39;, width:100, sortable:false, hidden: true},<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; {name:&#39;lot&#39;,index:&#39;lot&#39;, width:100, align:"center", sorttype:"string"},<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; {name:&#39;qty&#39;,index:&#39;qty&#39;, width:100, align:"right",sorttype:"int"},<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; {name:&#39;cumAge&#39;,index:&#39;cumAge&#39;, width:100, align:"right",sorttype:"float"}<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; ],<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; sortname:&#39;cumAge&#39;,<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; sortorder:&#39;asc&#39;,<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; multiselect: false,<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; caption: "Lot Cum Age Report - " + device<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; });</p>
<p>&#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; $(&#39;#myXXTable&#39;).jqGrid(&#39;clearGridData&#39;);</p>
<p>&#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; for(var i=0;i&#60;=cumAgeArray.length;i++)<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; {<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; $("#myXXTable").jqGrid(&#39;addRowData&#39;,i+1,cumAgeArray[i]);<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; }</p>
</p>
<p>After &#39;addRowData&#39;, jqGrid doesn&#39;t sort by cumAge asc,</p>
<p>Can someone tell me how to enforce jqGrid to sort data?</p>
<p>Thank you very much.</p>
]]></description>
        	        	<pubDate>Fri, 29 Oct 2010 11:29:16 +0300</pubDate>
        </item>
</channel>
</rss>