<?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: problem controlling sort icons</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-controlling-sort-icons</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/problem-controlling-sort-icons/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on problem controlling sort icons</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-controlling-sort-icons#p29733</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-controlling-sort-icons#p29733</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Thanks for investigation - yes you sort on column which is frozen, which causes the problem.</p>
<p>Also should look at sortGrid to see if I can fix this situation.</p>
<p>Thanks</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Tue, 22 Oct 2013 08:30:02 +0300</pubDate>
        </item>
        <item>
        	<title>aerowhiz on problem controlling sort icons</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-controlling-sort-icons#p29713</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-controlling-sort-icons#p29713</guid>
        	        	<description><![CDATA[<p>I have a workaround for the issue. I added &#39;destroyFrozenColumns&#39; before the sort, and &#39;setFrozenColumns&#39; after the sort.</p>
<p>The reset button code is now:</p>
<p>&#160;&#160;&#160;&#160;&#160; &#60;button id="st3" class="st-button" title="Reset Logsheet to Today" onClick="$(&#39;#ddg1&#39;).jqGrid(&#39;setGridParam&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { search: false, sortorder:&#39;desc&#39;, postData: { &#39;filters&#39;:&#39;&#39;, qtype:1, cdate:cdate, team:team }})<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; .jqGrid(&#39;destroyFrozenColumns&#39;).jqGrid(&#39;sortGrid&#39;, &#39;Order_Num&#39;, true).jqGrid(&#39;setFrozenColumns&#39;);"&#62;Reset&#60;/button&#62;</p>
]]></description>
        	        	<pubDate>Fri, 18 Oct 2013 21:53:57 +0300</pubDate>
        </item>
        <item>
        	<title>aerowhiz on problem controlling sort icons</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-controlling-sort-icons#p29712</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-controlling-sort-icons#p29712</guid>
        	        	<description><![CDATA[<p>Here is a shortened version of the progam that demonstrates the problem. Press the &#39;Reset&#39; button after sorting a column other than column 0. The problem disappears if the &#39;setFrozenColumns&#39; directive is removed.</p>
<p>sorttest.php</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />"http://www.w3.org/TR/html4/strict.dtd"&#62;</p>
<p>&#60;html xmlns="http://www.w3.org/1999/xhtml" lang="en"&#62;<br />&#160; &#60;head&#62;<br />&#160;&#160;&#160; &#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;<br />&#160;&#160;&#160; &#60;title&#62;Shopflo&#60;/title&#62;<br />&#160;&#160;&#160; &#60;meta name="author" content="Copyright 2013 Michael Cannon, Cannon Research" /&#62;<br />&#160;&#160;&#160; &#60;!-- Date: 2013-09-22 --&#62;<br />&#160;&#160; &#160;<br />&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" media="screen" href="css/ui-redmond/jquery-ui-1.9.2.custom.css" /&#62;<br />&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" /&#62;<br />&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" media="screen" href="css/ui.multiselect.css" /&#62;<br />&#160;&#160;&#160; &#60;style type="text/css"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; html, body { font-size: 75%; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; .ui-jqgrid tr.jqgrow td { height: 15px; }<br />&#160;&#160;&#160; &#60;/style&#62;<br />&#160;&#160;&#160; &#60;script src="js/jquery-1.9.1.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src="js/jquery-ui-1.10.3.custom.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src="js/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src="js/ui.multiselect.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src="js/jquery.jqGrid.src.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;<br />&#160;&#160;&#160; &#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160; var team="";<br />&#160;&#160;&#160; var cdate = "2013-10-14"<br />&#160;&#160; &#160;<br />&#160;&#160;&#160; $(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160; $.extend($.jgrid.defaults,{emptyrecords: "No Orders", loadtext: "Updating..."});<br />&#160;&#160;&#160;&#160;&#160; $("#ddg1").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: "query.php",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "jsonp",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: "GET",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: ["Order", "H", "W", "Adv", "Tag", "Status", "Last Name", "First Name"],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "Order_Num", index:&#39;Order_Num&#39;,width: 55, align: "left", hidedlg: true, frozen: true, resizable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "Hold", index:&#39;Hold&#39;,width: 15, align: "center", hidedlg: true, frozen: true, resizable: false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "Waiting ", index:&#39;Waiting&#39;,width: 15, align: "center", hidedlg: true, frozen: true, resizable: false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "Advisor", index:&#39;Advisor&#39;,width: 45, align: "left", hidedlg: true, frozen: true, resizable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "Tag", index:&#39;Tag&#39;,width: 75, search: false, align: "left" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "Status", index:&#39;Status&#39;,width: 95, search: false, align: "left"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "Last_Name", index:&#39;Last_Name&#39;,width: 90, searchoptions: {sopt:[&#39;eq&#39;,&#39;cn&#39;]}, align: "left"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "First_Name", index:&#39;First_Name&#39;,width: 90, search: false, align: "left"}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 0,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; scrollrows: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: "Order_Num",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "DESC",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 1000,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: 300,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; shrinkToFit: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ignoreCase: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridview: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; autoencode: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; postData: { qtype:1, cdate:cdate, team:team }<br />&#160;&#160;&#160;&#160;&#160; }); <br />&#160;&#160;&#160;&#160;&#160; $("#ddg1").jqGrid(&#39;setFrozenColumns&#39;);<br />&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160; }); <br />&#160;&#160;&#160; &#60;/script&#62;<br />&#160; &#60;/head&#62;<br />&#160; &#60;body&#62;<br />&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; &#60;table id="ddg1"&#62;&#60;tr&#62;&#60;td&#62;&#60;/td&#62;&#60;/tr&#62;&#60;/table&#62; </p>
<p>&#160;&#160;&#160;&#160;&#160; &#60;button id="st3" class="st-button" title="Reset Logsheet to Today" onClick="$(&#39;#ddg1&#39;).jqGrid(&#39;setGridParam&#39;, { search: false, sortorder:&#39;desc&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; postData: { &#39;filters&#39;:&#39;&#39;, qtype:1, cdate:cdate, team:team }}).jqGrid(&#39;sortGrid&#39;, &#39;Order_Num&#39;, true);"&#62;Reset&#60;/button&#62;<br />&#160; &#60;/body&#62;<br />&#60;/html&#62;</p>
]]></description>
        	        	<pubDate>Fri, 18 Oct 2013 21:13:37 +0300</pubDate>
        </item>
        <item>
        	<title>tony on problem controlling sort icons</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-controlling-sort-icons#p29707</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-controlling-sort-icons#p29707</guid>
        	        	<description><![CDATA[<p>Hello</p>
</p>
<blockquote>
<p>If I use sortGrid the sort occurs, but the icons on all sortable columns turn on.</p>
</blockquote>
<p>Can you please post a simple test case?</p>
<p>In principle when using sortGrid the only sort icon should be on.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Fri, 18 Oct 2013 11:23:21 +0300</pubDate>
        </item>
        <item>
        	<title>aerowhiz on problem controlling sort icons</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-controlling-sort-icons#p29705</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-controlling-sort-icons#p29705</guid>
        	        	<description><![CDATA[<p>I am writing a reset function for the grid. I need to restore to the original sort order.</p>
<p>If I use setGridParam the sort occurs, but the icons for the previous sort remain.</p>
<p>If I use sortGrid the sort occurs, but the icons on all sortable columns turn on.</p>
<p>How do I programmatically sort and have only the icons for the newly sorted column show properly as they did when the grid was initialized.</p>
<p>Here are my initial option settings:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 0,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; userData: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; scrollrows: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: "Order_Num",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "DESC",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: winWidth,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: winHeight,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; shrinkToFit: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; deselectAfterSort: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ignoreCase: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridview: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; autoencode: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; postData: { qtype:1, cdate:cdate, team:team },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; onCellSelect: function(id, col) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ord = col==0 ? id : 0;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; detail(ord);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(id){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastId = id;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSortCol: function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastId = false;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; detail(0);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridComplete: function(){ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#ddg1").jqGrid(&#39;setSelection&#39;, lastId, false);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; beforeProcessing: function(data){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; personnel = data[&#39;userdata&#39;];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for(i in personnel) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (personnel[i][2] == &#39;Advisor&#39;) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; advisor[personnel[i][0]] = personnel[i][1] + &#39;\nId: &#39; + personnel[i][4];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (personnel[i][3] == &#39;Technician&#39;) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; tech[personnel[i][0]] = personnel[i][1] + &#39;\nJob: &#39; + personnel[i][2] + &#39;\nId: &#39; + personnel[i][4];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>PS Love the grid...!</p>
]]></description>
        	        	<pubDate>Fri, 18 Oct 2013 01:13:24 +0300</pubDate>
        </item>
</channel>
</rss>