<?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: Custom client side sorting</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-client-side-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/custom-client-side-sorting/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Custom client side sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-client-side-sorting#p16185</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-client-side-sorting#p16185</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m thinking about custom defined sort function. Will see how to do this, but I do not promise if this will be in the next release.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 03 Apr 2010 13:49:42 +0300</pubDate>
        </item>
        <item>
        	<title>Doogal on Custom client side sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-client-side-sorting#p16039</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-client-side-sorting#p16039</guid>
        	        	<description><![CDATA[<p>Thanks Tony, although that&#39;s not quite what I need. Say my column contains &#39;12 High Street&#39;, &#39;1 High Street&#39;, &#39;The House, High Street&#39;, &#39;Other Place, High Street&#39;, I want to sort the first two as numbers and sort the last two as strings. If I could define my own sort algorithm this would be possible. Time to have a hack around in the code I guess</p>
]]></description>
        	        	<pubDate>Tue, 30 Mar 2010 10:02:53 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Custom client side sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-client-side-sorting#p15938</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-client-side-sorting#p15938</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Very interesting.</p>
<p>I never try this, but you can use the onSortCol event not to stop the sorting, but rather to change the sorttype of the column, something like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5582' value='Select Code' data-codeid='sfcode5582' /></p>
<div class='sfcode' id='sfcode5582'>
<p>onSortCol : function(name, iCol, sortOrder) {</p>
<p>if(name==&#39;myname&#39;) {</p>
<p>if(some_condition) {</p>
<p>$(this).jqGrid(&#39;setColProp&#39;,&#39;name&#39;,{sorttype:&#39;int&#39;});</p>
<p>} else {</p>
<p>$(this).jqGrid(&#39;setColProp&#39;,&#39;name&#39;,{sorttype:&#39;text&#39;});</p>
<p>}</p>
<p>}</p>
<p>}</p>
</div>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 25 Mar 2010 09:31:13 +0200</pubDate>
        </item>
        <item>
        	<title>Doogal on Custom client side sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-client-side-sorting#p15895</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-client-side-sorting#p15895</guid>
        	        	<description><![CDATA[<p>I have a column that contains addresses which may or may not start with a number. So in some cases I want to sort the column numerically and in other cases sort it textually. In the documentation I see an onSortCol event, which says <em>"If this event return &#39;stop&#39; the sort processing is stopped and you can define your own custom sorting" </em>which looks like exactly what I need. Question is how do I plug in my own sorting algorithm?</p>
]]></description>
        	        	<pubDate>Mon, 22 Mar 2010 19:21:13 +0200</pubDate>
        </item>
</channel>
</rss>