<?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 sort function on column</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-sort-function-on-column</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-sort-function-on-column/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>lotjuh on Custom sort function on column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-sort-function-on-column#p10969</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-sort-function-on-column#p10969</guid>
        	        	<description><![CDATA[<p>Yeah I thought about that solution myself as well, but I found it rather ugly since the user can see the &#39;0&#39; and &#39;1&#39; as soon as they do a text select on the cell.</p>
<p>And I do have other places where I&#39;d like to use a custom sort function like columns with ip addresses I use in a different project.</p>
]]></description>
        	        	<pubDate>Wed, 21 Oct 2009 15:56:57 +0300</pubDate>
        </item>
        <item>
        	<title>dsh0105 on Custom sort function on column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-sort-function-on-column#p10960</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-sort-function-on-column#p10960</guid>
        	        	<description><![CDATA[<p>I don&#39;t have an exact answer for you.. but I can suggest a quick work around: use your custom formater to font-color of the value to the same as the background then let the normal column sort do it&#39;s magic.&#160; I&#39;m sure someone with more JQgrid experince can offer a JQgrid solution though.</p>
]]></description>
        	        	<pubDate>Wed, 21 Oct 2009 14:17:52 +0300</pubDate>
        </item>
        <item>
        	<title>lotjuh on Custom sort function on column</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-sort-function-on-column#p10936</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-sort-function-on-column#p10936</guid>
        	        	<description><![CDATA[<p>Hi everyone,</p>
</p>
<p>I&#39;ve been searching for a while, but I can&#39;t find anything about how to add a custom sort function to a column. I&#39;m not even sure if it&#39;s possible in jqgrid.</p>
<p>As you can see at <a rel="nofollow" href="http://www.gebroederslaan.nl/broeischema.html" target="_blank"></a><a href="http://www.gebroederslaan.nl/b" rel="nofollow" target="_blank">http://www.gebroederslaan.nl/b</a>.....chema.html I have cells that just show a color. I&#39;ve accomplished this by using a custom formatter for these columns:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7771' value='Select Code' data-codeid='sfcode7771' /></p>
<div class='sfcode' id='sfcode7771'>&#160;function colorFormatter(cellvalue, options, rowObject) {<br />&#160;&#160;&#160;&#160; if(cellvalue == 1) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return &#39;&#60;div class=&#8221;ui-state-highlight&#8221;&#62;&#38;nbsp;&#60;/div&#62;&#39;;<br />&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160; else {<br />&#160; &#160; &#160; &#160;&#160; return &#39;&#39;;<br />&#160;&#160;&#160;&#160; }<br />&#160;}</div>
<p>But now I want to be able to sort on these columns as well. Since there&#39;s no real value in it, jqgrid won&#39;t sort it. So I want to use a custom sort function which checks if there&#39;s an html element with the class &#8220;ui-state-highlight&#8221; in it or not to handle the sorts.</p>
</p>
<p>Does anyone know how to do this?</p>
</p>
<p>Kind regards Lotte-Sara Laan</p>
]]></description>
        	        	<pubDate>Wed, 21 Oct 2009 05:36:26 +0300</pubDate>
        </item>
</channel>
</rss>