<?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: Local sort grouped data</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/local-sort-grouped-data</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/local-sort-grouped-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>betolj on Local sort grouped data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/local-sort-grouped-data#p26412</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/local-sort-grouped-data#p26412</guid>
        	        	<description><![CDATA[<p>Hello</p>
<p>I am also in the same issue.<br />For now I change the source of jqGrid...</p>
</p>
<p>The change in jquery.jqGrid.min.js was very simple&#8230;</p>
<p>&#8230;if(a.p.grouping){<strong>if(u.groupSorted===true){</strong>r.orderBy(C,u.groupOrder[0],p[0].stype,p[0].srcfmt)<strong>}</strong>;u.groupDataSorted=true}&#8230;<br />&#8230;k=d.groupCollapse?d.plusicon:d.minusicon,l,r,m;if(!d.groupDataSorted<strong> &#38;&#38; d.groupSorted===true</strong>){d.sortitems[0].sort();&#8230;</p>
</p>
<p>&#8212; my jqGrid def</p>
<p>groupingView : {<br />groupField : ???,<br />groupColumnShow : [false],<br />groupCollapse : false,<br />groupSorted: false,<br />groupText : [&#39;&#60;b&#62;{0}&#60;/b&#62; {1}&#39;]</p>
<p>},</p>
<p>&#8212;</p>
<p>Thus the&#160;sorting is made by&#160;programming.<br />It worked for me.</p>
]]></description>
        	        	<pubDate>Thu, 19 Apr 2012 04:09:08 +0300</pubDate>
        </item>
        <item>
        	<title>gfricke on Local sort grouped data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/local-sort-grouped-data#p23212</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/local-sort-grouped-data#p23212</guid>
        	        	<description><![CDATA[<p>I have a grid, I get the data through ajax based on user interaction with my site (I don&#39;t want to call from the grid).</p>
</p>
<p>I bind the data, but the group sorts on the groupfield alpa.&#160;&#160;I want it to honor the order of my collection (e.g. groupDataSorted:true) but it doesn&#39;t work with local binding.</p>
<p>What are my options?&#160; I want the groups themselves&#160;sorted on a different field than the groupfield, it is exactly how I want in my collection but it keeps resorting&#8230;</p>
<p>Please note the columns call to javascript functions&#160;to build elablorate cells:</p>
<p><strong></strong></p>
<p><input type='button' class='sfcodeselect' name='sfselectit5159' value='Select Code' data-codeid='sfcode5159' /></p>
<div class='sfcode' id='sfcode5159'><strong></p>
<p>&#160; jQuery(&#34;#grdDocuments&#34;).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#34;local&#34;,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;&#39;, &#39;CategoryGroupingKey&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{ name: &#39;DocumentTitle&#39;, index: &#39;DocumentTitle&#39;, width: 400, sortable: false, formatter: CreateColumnModel},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{ name: &#39;CategoryGroupingKey&#39;, index: &#39;CategoryGroupingKey&#39; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 30,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [10, 20, 30, 40, 50],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#34;pgrDocuments&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grouping: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupingView: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupField: [&#39;CategoryGroupingKey&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupColumnShow: [false],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupText: [&#39;&#60;label class=&#34;Text&#34; style=&#34;font-size:17px&#34;&#62;&#60;b&#62;{0}&#60;/b&#62;&#60;/label&#62;&#39;]<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160; });</p>
</p>
<p></strong></div></p>
]]></description>
        	        	<pubDate>Tue, 17 May 2011 00:03:50 +0300</pubDate>
        </item>
</channel>
</rss>