<?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: Unsortable headers get ui-jqgrid-sortable css class</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/unsortable-headers-get-ui-jqgrid-sortable-css-class</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/bugs/unsortable-headers-get-ui-jqgrid-sortable-css-class/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>pbor on Unsortable headers get ui-jqgrid-sortable css class</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/unsortable-headers-get-ui-jqgrid-sortable-css-class#p9840</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/unsortable-headers-get-ui-jqgrid-sortable-css-class#p9840</guid>
        	        	<description><![CDATA[<p>Mmm.. ok I&#39;ll look into setColProp.</p>
</p>
<p>However I think the current behavior is unintuitive... if there are dynamically sortable columns, maybe the css class should be dynamically set too. Just to give context, I want to tweak my css to not show the unsortable columns as clickable, which I think it is a common choice.</p>
]]></description>
        	        	<pubDate>Fri, 18 Sep 2009 04:57:53 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Unsortable headers get ui-jqgrid-sortable css class</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/unsortable-headers-get-ui-jqgrid-sortable-css-class#p9819</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/unsortable-headers-get-ui-jqgrid-sortable-css-class#p9819</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for this investigation. I know for this and maybe it will stay so.</p>
<p>Do not think that this is a bug. The reason is that you have dynamicall sorting columns. Also using setColProp make this possible.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 18 Sep 2009 03:23:32 +0300</pubDate>
        </item>
        <item>
        	<title>pbor on Unsortable headers get ui-jqgrid-sortable css class</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/unsortable-headers-get-ui-jqgrid-sortable-css-class#p9807</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/unsortable-headers-get-ui-jqgrid-sortable-css-class#p9807</guid>
        	        	<description><![CDATA[<p>Even if a Column is not sortable, it still gets the ui-jqgrid-sortable css class.</p>
</p>
<p>This patch fixes it:</p>
</p>
<p>From f2d851e6e93a498a34b0efe32975c75079b873bf Mon Sep 17 00:00:00 2001<br />From: Paolo Borelli &#60;pborelli@gnome.org&#62;<br />Date: Thu, 17 Sep 2009 19:53:40 +0200<br />Subject: [PATCH 1/2] Do not mark unsortable cols with sortable css class</p>
<p>---<br />&#160;js/grid.base.js &#124;&#160;&#160;&#160; 8 ++++----<br />&#160;1 files changed, 4 insertions(+), 4 deletions(-)</p>
<p>diff --git a/js/grid.base.js b/js/grid.base.js<br />index 36365a5..81bb7b6 100644<br />--- a/js/grid.base.js<br />+++ b/js/grid.base.js<br />@@ -1150,11 +1150,11 @@ $.fn.jqGrid = function( p ) {<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; sort = ts.p.colModel[j].sortable;<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if( typeof sort !== &#39;boolean&#39;) {ts.p.colModel[j].sortable =&#160; true; sort=true;}<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var nm = ts.p.colModel[j].name;<br />-&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if( !(nm == &#39;cb&#39; &#124;&#124; nm==&#39;subgrid&#39; &#124;&#124; nm==&#39;rn&#39;) ) {<br />-&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(ts.p.viewsortcols[2])<br />-&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("div",this).addClass(&#39;ui-jqgrid-sortable&#39;);<br />-&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(sort) {<br />+&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if( !(nm == &#39;cb&#39; &#124;&#124; nm==&#39;subgrid&#39; &#124;&#124; nm==&#39;rn&#39;) ) {<br />+&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(ts.p.viewsortcols[2])<br />+&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("div",this).addClass(&#39;ui-jqgrid-sortable&#39;);<br />+&#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; if(ts.p.viewsortcols[0]) {$("div span.s-ico",this).show(); if(j==ts.p.lastsort){ $("div span.ui-icon-"+ts.p.sortorder,this).removeClass("ui-state-disabled");}}<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; else if( j == ts.p.lastsort) {$("div span.s-ico",this).show();$("div span.ui-icon-"+ts.p.sortorder,this).removeClass("ui-state-disabled");}<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />-- <br />1.6.2.5</p>
]]></description>
        	        	<pubDate>Thu, 17 Sep 2009 13:00:34 +0300</pubDate>
        </item>
</channel>
</rss>