<?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: Problems with Column Sorting</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/problems-with-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/discussion/problems-with-column-sorting/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Problems with Column Sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/problems-with-column-sorting#p25948</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/problems-with-column-sorting#p25948</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks Oleg for the example - I will see if I can include it.</p>
<p>The reason for these settings is simple - using the current approach the sorting can be changed dymamically with just a simple command</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8128' value='Select Code' data-codeid='sfcode8128' /></p>
<div class='sfcode' id='sfcode8128'>
<p>$("#grid").jqGrid(&#39;setColProp&#39;, &#39;colname&#39;, {soratable: false});</p>
</div>
<p>I find this feature more important than not to have sortable cursor.</p>
<p>In the Oleg&#39;s link here there is some very simple solution</p>
</p>
<p>th.unsortableclass {</p>
<p>cursor: default;</p>
<p>}</p>
</p>
<p>Apply this cass to the not sortable columns.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Tue, 14 Feb 2012 19:49:45 +0200</pubDate>
        </item>
        <item>
        	<title>GV on Problems with Column Sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/problems-with-column-sorting#p25945</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/problems-with-column-sorting#p25945</guid>
        	        	<description><![CDATA[<p>from grid-base.js</p>
<p>line:2124 &#160;sort = ts.p.colModel[j].sortable;<br /> line:2125 &#160;if( typeof sort !== &#39;boolean&#39;) {ts.p.colModel[j].sortable =  true; sort=true;} <br />line:2126 &#160;var nm = ts.p.colModel[j].name; <br />line:2127&#160;if( !(nm == &#39;cb&#39; &#124;&#124; nm==&#39;subgrid&#39; &#124;&#124; nm==&#39;rn&#39;) ) {<br />line:2128 &#160;if(ts.p.viewsortcols[2]){ <br />line:2129 &#160; &#160;$("div",this).addClass(&#39;ui-jqgrid-sortable&#39;);<br />line:2130 &#160; &#160;} <br />line:2131&#160;} <br />line:2132&#160;if(sort) {<br />line:2133 &#160;///adding sort icon<br />line:2134 &#160;///adding sort icon<br />line:2135&#160;}</p>
<p>=============</p>
<p>Changed</p>
<p>line:2124 &#160;sort = ts.p.colModel[j].sortable;<br />line:2125 &#160;if( typeof sort !== &#39;boolean&#39;) {ts.p.colModel[j].sortable = true; sort=true;}&#160;<br />line:2126 &#160;var nm = ts.p.colModel[j].name;&#160;<br /> line:2127 if(sort) {<br />line:2128 if( !(nm == &#39;cb&#39; &#124;&#124; nm==&#39;subgrid&#39; &#124;&#124; nm==&#39;rn&#39;) ) {<br />line:2129 &#160;if(ts.p.viewsortcols[2]){&#160;<br />line:2130 &#160; &#160;$("div",this).addClass(&#39;ui-jqgrid-sortable&#39;);<br />line:2131 &#160; &#160;}&#160;<br />line:2132 }&#160;<br />line:2133 &#160;///adding sort icon<br />line:2134 &#160;///adding sort icon<br />line:2135&#160;}</p>
</p>
<p>I checked for a while, and its working.. Can anyone please tell me whether this will have some other unforeseen effects ?</p>
]]></description>
        	        	<pubDate>Tue, 14 Feb 2012 18:13:49 +0200</pubDate>
        </item>
        <item>
        	<title>GrandSlambert on Problems with Column Sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/problems-with-column-sorting#p25712</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/problems-with-column-sorting#p25712</guid>
        	        	<description><![CDATA[<p>Well, that takes care of a big part of it. The column headers still change colors on the hover which they should not do. Your example sends me in the right direction though so I will keep working on it.</p>
<p>Now the problem is that jqGrid uses two different spans for the up and down arrows, so I cannot do what I want in 1 above. The rest of the site uses a larger up or down arrow on the sorted column, and the smaller double arrow on unsorted columns. I will have to play with the CSS more I guess.</p>
]]></description>
        	        	<pubDate>Wed, 18 Jan 2012 00:58:29 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Problems with Column Sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/problems-with-column-sorting#p25711</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/problems-with-column-sorting#p25711</guid>
        	        	<description><![CDATA[<p>I understand the problem. I described the workaround in <a href="http://stackoverflow.com/a/5640442/315935" target="_blank">the old answer</a>. To display the sorting icons on the sortable columns always you can follow my other <a href="http://stackoverflow.com/a/8899305/315935" target="_blank">recent answer</a>. You will get the grid like</p>
<p><a href="http://www.ok-soft-gmbh.com/jqGrid/ShowAlwaysSortableIcons.png"><img src="http://www.ok-soft-gmbh.com/jqGrid/ShowAlwaysSortableIcons.png" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>or like</p>
<p><a href="http://www.ok-soft-gmbh.com/jqGrid/ShowAlwaysSortableIconsCompact.png"><img src="http://www.ok-soft-gmbh.com/jqGrid/ShowAlwaysSortableIconsCompact.png" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>Whether such look will be supported by jqGrid as new feature should decide Tony.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Wed, 18 Jan 2012 00:34:50 +0200</pubDate>
        </item>
        <item>
        	<title>GrandSlambert on Problems with Column Sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/problems-with-column-sorting#p25710</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/problems-with-column-sorting#p25710</guid>
        	        	<description><![CDATA[<p>I have a couple issues with column sorting that I would like to see if there is a workaround for.</p>
<ol>
<li>When a column is marked as unsortable, the column header still highlights on hover and still has the cursor as the others do for sorting. I would like neither to happen when sorting. Why does jqGrid ad the &#39;ui-jqgrid-sortable&#39; class to columns that are not sortable?</li>
<li>On the columns that I can sort, I want to change the sorting icons and always display them. We use a double arrow to indicate that a column can be sorted, and a single up or down arrow to indicate which column the data is currently sorted on and whether the sort is asc or desc. I am sure I can change the icons easily, but do not see how I can make the double arrows show when the column is not sorted.</li>
</ol>
<p>Thanks in advance for any advice.</p>
]]></description>
        	        	<pubDate>Wed, 18 Jan 2012 00:14:13 +0200</pubDate>
        </item>
</channel>
</rss>