<?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: Column Order</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/column-order</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/column-order/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Column Order</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/column-order#p8613</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/column-order#p8613</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I really do not understand what you try to do.</p>
<p>Once the grid is created you can not reorder the columns.</p>
<p>If you want dynamically&#160; to reorder the columns when the grid is created, I recommend you to use</p>
<p>the so named jqGridImport method - where you can load the grid from xml or json - see docs</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 15 Aug 2009 02:16:14 +0300</pubDate>
        </item>
        <item>
        	<title>Steve on Column Order</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/column-order#p8551</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/column-order#p8551</guid>
        	        	<description><![CDATA[<p>I dont want to have to define the order of the columns in the data service. I think that it is better that the grid determines the order of columns. Because I cannot seem to figure out how to get jqGrid to do this I have decided to use the &#39;postData&#39; attribute to pass back a list of columns in the order that I want. The service then uses this list to sort the columns. Its not the optimum way to do it but its better than hardcoding the column order in the service itself.</p>
<p>If there is some other way to achieve this I would like to know.</p>
</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#39;#ppv_history&#39;).jqGrid({<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/subscribers/get_ppv_history&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; // This determines the order of columns.&#160; It MUST match the colModel<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; postData: {colOrder: &#39;ChannelName,Title,StartDate,StartTime,EventCode,Price&#39;},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;Channel&#39;, name: &#39;ChannelName&#39;, index: &#39;ChannelName&#39;, sortable:false, width: &#39;40&#39;, },<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;Title&#39;, name: &#39;Title&#39;, index: &#39;Title&#39;, sortable:false}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;StartDate&#39;, name: &#39;StartDate&#39;,index: &#39;StartDate&#39;, sortable:false,width: &#39;40&#39;, align: &#39;right&#39;}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;StartTime&#39;, name: &#39;StartTime&#39;,index: &#39;StartTime&#39;, sortable:false,width: &#39;40&#39;,&#160; align: &#39;right&#39;}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;EventCode&#39;, name: &#39;EventCode&#39;,index: &#39;EventCode&#39;, sortable:false,width: &#39;40&#39;, align: &#39;right&#39;}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;Price&#39;, name: &#39;Price&#39;, index: &#39;Price&#39;, sortable:false,width: &#39;25&#39;, align: &#39;right&#39;}<br />&#160;&#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; pager: jQuery(&#39;#pager&#39;),<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [10, 20, 30],<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;Title&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: &#39;asc&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; height: &#39;auto&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; emptyrecords: "No records to view"<br />&#160;&#160;&#160; &#160;&#160;&#160; });</p>
]]></description>
        	        	<pubDate>Thu, 13 Aug 2009 10:11:37 +0300</pubDate>
        </item>
        <item>
        	<title>Steve on Column Order</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/column-order#p8538</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/column-order#p8538</guid>
        	        	<description><![CDATA[<p>Well I would change the order of the items in the colModel.</p>
]]></description>
        	        	<pubDate>Thu, 13 Aug 2009 06:15:21 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Column Order</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/column-order#p8519</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/column-order#p8519</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Do not undestand - how do you try to change the order?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 13 Aug 2009 02:38:03 +0300</pubDate>
        </item>
        <item>
        	<title>Steve on Column Order</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/column-order#p8474</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/column-order#p8474</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I cant seem to figure the trick to defining the order that columns appear in. Here is my column definition (I dont use the colNames attribute):</p>
</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;Channel&#39;, name: &#39;ChannelName&#39;, index: &#39;ChannelName&#39;, sortable:false}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;Title&#39;, name: &#39;Title&#39;, index: &#39;Title&#39;, sortable:false}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;StartDate&#39;, name: &#39;StartDate&#39;,index: &#39;StartDate&#39;, sortable:false}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;StartTime&#39;, name: &#39;StartTime&#39;,index: &#39;StartTime&#39;, sortable:false}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;EventCode&#39;, name: &#39;EventCode&#39;,index: &#39;EventCode&#39;, sortable:false}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {label: &#39;Price&#39;, name: &#39;Price&#39;, index: &#39;Price&#39;, sortable:false}</p>
<p>No matter what order I place those columns in the following always happens:</p>
<p>1) The labels change positions as you would expect</p>
<p>2) The data always appears in the following order: Title, Price, EventCode, ChannelName, StartDate, StartTime</p>
<p>How do I tie the column header to the data?</p>
</p>
<p>Thanks</p>
<p>Steve</p>
]]></description>
        	        	<pubDate>Wed, 12 Aug 2009 14:36:10 +0300</pubDate>
        </item>
</channel>
</rss>