<?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: Column Sorting</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/column-sorting</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/column-sorting/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>RobGMiller on Column Sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/column-sorting#p4256</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/column-sorting#p4256</guid>
        	        	<description><![CDATA[</p>
<p>Bingo!</p>
<p>Definetly need to pay more attention to case sensitivity of javascript.</p>
</p>
<p>Thanks again Tony,</p>
]]></description>
        	        	<pubDate>Fri, 30 Jan 2009 11:09:52 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Column Sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/column-sorting#p4245</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/column-sorting#p4245</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Try with</p>
<p><span style="color: #0000ff;"> sortorder: "asc"</span></p>
<p>and not with</p>
<p><span style="color: #0000ff;"> sortorder: &#8220;Asc&#8221;</span></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 30 Jan 2009 09:21:20 +0200</pubDate>
        </item>
        <item>
        	<title>RobGMiller on Column Sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/column-sorting#p4244</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/column-sorting#p4244</guid>
        	        	<description><![CDATA[</p>
<p>Hi Tony,</p>
<p>The following is how the grid is configured: (truncated as much as possible)</p>
</p>
<p><span style="color: #0000ff;"> </span></p>
<p><input type='button' class='sfcodeselect' name='sfselectit718' value='Select Code' data-codeid='sfcode718' /></p>
<div class='sfcode' id='sfcode718'>
<p><span style="color: #0000ff;">(&#8221;#ETSMonth&#8221;).jqGrid({</span></p>
<p><span style="color: #0000ff;">&#160;&#160; url: &#39;WSGridGetDFSA.aspx&#39;,</span></p>
<p><span style="color: #0000ff;">&#160;&#160; datatype: &#8220;json&#8221;,&#160;</span></p>
<p><span style="color: #0000ff;">&#160;&#160; mtype: &#39;POST&#39;,</span></p>
<p><span style="color: #0000ff;">&#160;&#160; colModel: [</span></p>
<p><span style="color: #0000ff;">&#160;&#160; &#160; {label: &#39;Date&#39;, name: &#39;Day&#39;, index: &#39;DayDate&#39;, width: 50, align: &#39;center&#39; },&#160;</span></p>
<p><span style="color: #0000ff;">&#160;&#160; &#160; {label: &#39;UWI&#39;, name: &#39;UWI&#39;, index: &#39;UWI&#39;, width: 200 },</span></p>
<p><span style="color: #0000ff;">&#160;&#160; &#160; &#160;...........40 other columns.........</span></p>
<p><span style="color: #0000ff;">&#160;&#160; &#160; {label: &#39;GRID&#39;, name: &#39;GRID&#39;, index: &#39;GRID&#39;, width: 1} &#160; &#160; &#160; &#160;</span></p>
<p><span style="color: #0000ff;">&#160;&#160; ],</span></p>
<p><span style="color: #0000ff;">&#160;&#160; imgpath: &#39;themes/coffee/images&#39;,</span></p>
<p><span style="color: #0000ff;">&#160;&#160; sortname: &#39;Day&#39;,</span></p>
<p><span style="color: #0000ff;">&#160;&#160; sortorder: &#8220;Asc&#8221;,</span></p>
<p><span style="color: #0000ff;">&#160;&#160; viewrecords: true,</span></p>
<p><span style="color: #0000ff;">&#160;&#160; height: &#39;100%&#39;,</span></p>
<p><span style="color: #0000ff;">&#160;&#160; hidegrid: false,&#160;</span></p>
<p><span style="color: #0000ff;">&#160;&#160; cellEdit: true,</span></p>
<p><span style="color: #0000ff;">&#160;&#160; cellsubmit: &#39;clientArray&#39;,&#160;</span></p>
<p><span style="color: #0000ff;">&#160;&#160; cellurl: &#8220;WSGridSetDFSA.aspx&#8221;,</span></p>
<p><span style="color: #0000ff;">&#160;&#160; afterSaveCell: function(rowid, celname, value, iRow, iCol) {&#160;</span></p>
<p><span style="color: #0000ff;">&#160;&#160; &#160; &#160; &#160;setAssociatedCellValues(rowid, celname, value, iRow, iCol) },</span></p>
<p><span style="color: #0000ff;">&#160;&#160; onSelectCell: function(id, name, val, iRow, iCol) {&#160;</span></p>
<p><span style="color: #0000ff;">&#160;&#160; &#160; &#160; &#160;setStaticCellValues(id, name, val, iRow, iCol); },</span></p>
<p><span style="color: #0000ff;">&#160;&#160; loadComplete: function() { setInitialCaption(); },</span></p>
<p><span style="color: #0000ff;">&#160;&#160; &#160; &#160; &#160;subGrid: true,</span></p>
<p><span style="color: #0000ff;">&#160;&#160; subGridRowExpanded: function(subgrid_id, row_id) {&#8230;.Working grid as subgrid&#8230;},</span></p>
<p><span style="color: #0000ff;">&#160;&#160; caption: &#8220;Title bar caption&#8221;</span></p>
<p><span style="color: #0000ff;">&#160;}); //End #ETSMonth</span></p>
</div>
<div>as you can see there is no paging information. The server always returns all the records. Each row represents 1 day in the current month. sidx and page are not used by the server to return records.&#160;</div>
<div></div>
<div>The post looks like the following:</div>
<div></div>
<div>page=1&#38;rows=20&#38;sidx=Day&#38;sord=Asc&#38;nd=1233322639562&#38;_search=false</div>
<div></div>
<div>When the &#8220;Day&#8221; column header is clicked the grid will post back and &#8220;sord&#8221; is always whatever the&#160;sortorder: option is set to.</div>
<div></div>
<div>Some columns are hidden using the following statement after the Grid Declaration:</div>
<div></div>
<div>
<div>&#160;&#160; &#160; &#160; &#160; &#160; &#160;$("#ETSMonth").hideCol(["UWI~Project", "APR", "SubmitDate", "Total", "KMRate", "HQty", "HRate", "LQty", "LRate", "CQty", "CRate", "Other", "MQty", "MRate", "FQty", "FRate", "TQty", "TRate", "MHQty", "MHRate", "HSQty", "HSRate", "NQty", "NRate", "Customer", "Labour", "Month", "Year", "DRID", "WOID", "GRID"]);</div>
<div></div>
</div>
<div>&#160;</div>
<div>Thanks again for your help.</div>
<div></div>
<div></div>
<div>Rob&#8230;</div></p>
]]></description>
        	        	<pubDate>Fri, 30 Jan 2009 07:33:23 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Column Sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/column-sorting#p4215</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/column-sorting#p4215</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m not sure what you try to do but this work well in the demo page. You can check. Also do you have some events defind - by example onPaging.</p>
<p>Also if you click on column1 and then on column2 the first order is asc and the second is again asc</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 29 Jan 2009 06:32:00 +0200</pubDate>
        </item>
        <item>
        	<title>RobGMiller on Column Sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/column-sorting#p4204</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/column-sorting#p4204</guid>
        	        	<description><![CDATA[<p>Hello,&#160;</p>
<p>I would imagine that clicking on a column header that is set for sortable:true should toggle the sort order from asc to desc for that column and include it in the POST "sord" parameter when the grid is reloaded from the server.&#160;</p>
<p>In this case, the POST is made when the column header is clicked but the "sord" parameter does not change from Asc to desc.&#160;</p>
<p>Is &#160;there something else that needs to be done to activate this feature?</p>
</p>
<p>Rob..</p></p>
]]></description>
        	        	<pubDate>Thu, 29 Jan 2009 04:44:21 +0200</pubDate>
        </item>
</channel>
</rss>