<?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: sort by multiple columns</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns</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/feature-request/sort-by-multiple-columns/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Clement on sort by multiple columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6974</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6974</guid>
        	        	<description><![CDATA[<p>Hi tony,</p>
<p>That&#39;s part of my requirements.. I also need subsequent clicks on same column header to reverse the sort direction or remove sorting on that column.</p>
<p>For example, we have columns A, B and C.</p>
<p>First click on column A -&#62; sort parameter: A asc</p>
<p>Then click on B -&#62; sort parameter: A asc, B asc</p>
<p>Then click on C twice -&#62; sort parameter: A asc, B asc, C desc</p>
<p>Then click on B -&#62; sort parameter: A asc, B desc, C desc</p>
<p>Then click on B again -&#62; sort parameter: A asc, C desc (Sort on B is off)</p>
</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Sat, 30 May 2009 01:51:11 +0300</pubDate>
        </item>
        <item>
        	<title>tony on sort by multiple columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6883</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6883</guid>
        	        	<description><![CDATA[<p>Hello Clement,</p>
<p>I&#39;m not sure that what you want can be done with jqGrid.</p>
<p>I mean the following.</p>
<p>When you click on one column to sort you can add many columns to the request, but nothing more</p>
<p>something like</p>
<p>onSortCol :&#160; function(index, iCol, sortorder) {</p>
<p>if(index==&#39;some&#39;) {</p>
<p>$("#mygrid").setGridParam({sortname: "col1 col2 col3..&#39;,sortorder:&#39;asc or desc&#39;});</p>
<p>}</p>
<p>if(index==&#39;other&#39;) {</p>
<p>$("#mygrid").setGridParam({sortname: "col3 col2 col1..&#39;,sortorder:&#39;asc or desc&#39;});</p>
<p>}</p>
<p>}</p>
<p>Do you see what I mean, but nothing more</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 25 May 2009 03:25:52 +0300</pubDate>
        </item>
        <item>
        	<title>Clement on sort by multiple columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6824</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6824</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Do you mean adding two onSortCol events (one desc and the other asc) for each column and each click to update the sortname and sortorder via setGridParam?</p>
<p>For example, initial sort is "Col_1 asc"</p>
<p>Then clicking on Col_2 would set sortname to "Col_1 asc, Col_2" and sortorder to "asc". Next click on Col_3 would set sortname to "Col_1 asc, Col_2 asc, Col_3" and sortorder to "asc". I think you have something else in mind.</p>
<p>My approach above seems to create a mess if I click on the same column more than once. A search and replace function would need to be in place to manipulate the sortname string and retain the order of last clicked column in sortorder. I would also need a sort reset button. Not elegant at all..</p>
<p>Please advise further.. Thanks!</p>
]]></description>
        	        	<pubDate>Wed, 20 May 2009 20:56:49 +0300</pubDate>
        </item>
        <item>
        	<title>tony on sort by multiple columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6777</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6777</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>To be a clear. When you click on one column you can simulate a sort on multiple coulmns sending the appropriate data to the server, but we can not sumulate this beghaviour (or at leaset is difficult) - click and some column (the data is sorted and sorting image appear), click on other column the sort of the first should remain again with the image, but again sorted to the second with the image and etc.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 20 May 2009 10:02:32 +0300</pubDate>
        </item>
        <item>
        	<title>Clement on sort by multiple columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6719</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6719</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I do not quite understand what you mean. Could you elaborate or provide examples or links to examples?</p>
</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Fri, 15 May 2009 04:05:16 +0300</pubDate>
        </item>
        <item>
        	<title>tony on sort by multiple columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6652</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6652</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>For the first you can use the hints in this topic.</p>
<p>For the second my ansver is: currently&#160; not possible.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 13 May 2009 13:33:50 +0300</pubDate>
        </item>
        <item>
        	<title>Clement on sort by multiple columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6636</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p6636</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>How can we do multi column sort by simply clicking on the column titles? Can we make the sort direction arrow appear for all the sorted columns?</p>
</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Wed, 13 May 2009 02:51:31 +0300</pubDate>
        </item>
        <item>
        	<title>tony on sort by multiple columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p3567</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p3567</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can do that.</p>
<p>1. You can define in the index multiple names something like</p>
<p>index: " name1 name2" - this string will be send to the server and you</p>
<p>can get it and sort appropriate way.</p>
<p>2. Use onSortCol to do that - also you can check example how</p>
<p>we can sort on hidden fields - the things are the same.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 16 Dec 2008 03:01:59 +0200</pubDate>
        </item>
        <item>
        	<title>mbasil on sort by multiple columns</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p3524</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/sort-by-multiple-columns#p3524</guid>
        	        	<description><![CDATA[<p>I&#39;m just starting out with jquery. &#160;I really like what I see with jqgrid. &#160; One thing I haven&#39;t seen is a way to sort by multiple columns at once.</p>
<p>Am I missing something in the doc, is there a workaround, or is this a feature that is on the horizon?</p>
<p>mb</p></p>
]]></description>
        	        	<pubDate>Sat, 13 Dec 2008 20:27:42 +0200</pubDate>
        </item>
</channel>
</rss>