<?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 with importing remapColumns grid option</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option</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-with-importing-remapcolumns-grid-option/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>venugopalsmartboy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p28812</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p28812</guid>
        	        	<description><![CDATA[<p>A simple yet efficient work around is , use&#160; label option in the colModel to set the grid headers and avoid using colNames.&#160; That will set things properly.</p>
]]></description>
        	        	<pubDate>Thu, 16 May 2013 12:31:31 +0300</pubDate>
        </item>
        <item>
        	<title>Nils on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p21577</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p21577</guid>
        	        	<description><![CDATA[<p>Hi Teddyboy,</p>
<p>Thanks for post this workaround. </p>
<p>Just one question regarding this proposed solution. <br />The main sortable&#160; (column reordering) feature works properly as expected. <br />But after I reordered some columns and try afterwords to sort one or more columns (asc or desc by clicking onto the column header), my table columns toggle around. In other words I clicked i.e. at column #5 and column #5 becomes column #3 and the original column #3 becomes #5. with another click onto a different column header (totally independed on which one) the columns are toggle back.</p>
<p>...,<br />loadBeforeSend : function()&#160; {<br />&#160;&#160;&#160;&#160; jQuery(&#39;.ui-jqgrid-hdiv&#39;).hide();&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; <br />&#160;},</p>
<p>gridComplete: function() {<br />&#160;&#160;&#160;&#160; var rv=document.getElementById(&#39;column_order&#39;).value.split(","); //[0,1,2,3,4,5,6,7,8,9,10,11,12]<br />&#160;&#160;&#160;&#160; jQuery("#list1").jqGrid("remapColumns",rv, true, false);&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160; var hv=document.getElementById(&#39;hidden_columns&#39;).value.split(",");&#160; //[&#39;id&#39;,&#39;product&#39;]<br />&#160;&#160;&#160;&#160; jQuery(&#39;#list1&#39;).jqGrid(&#39;hideCol&#39;,hv);<br />&#160;&#160;&#160;&#160; jQuery(&#39;.ui-jqgrid-hdiv&#39;).show();<br />&#160;},...</p>
</p>
<p>BTW as hint: I got more than one sort arrow at the grid (but just one per column).&#160; That&#39;s strange, but just with the above descripted senario.</p>
<p>Thanks</p>
<p>Nils</p>
]]></description>
        	        	<pubDate>Fri, 07 Jan 2011 22:34:15 +0200</pubDate>
        </item>
        <item>
        	<title>teddyboy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p19046</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p19046</guid>
        	        	<description><![CDATA[<p>BTW a simple fix for this is just to make all your columns visible in the data column array. Then in loadBeforeSend first time callback hide the columns bar $(&#39;.ui-jqgrid-hdiv&#39;).hide() . On gridComplete first time callback call $(&#39;#yourGrid&#39;).jqGrid(&#39;remapColumns&#39;,colOrderArry,true,false) and then buildup an array of those columns you want to hide and call $(&#39;#yourGrid&#39;).jqGrid(&#39;hideCol&#39;,colArray) and then $(&#39;.ui-jqgrid-hdiv&#39;).show() to show the column header. This gets over the problem &#39;remapColumns&#39; has with hidden columns.</p></p>
]]></description>
        	        	<pubDate>Tue, 10 Aug 2010 15:57:22 +0300</pubDate>
        </item>
        <item>
        	<title>teddyboy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p18983</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p18983</guid>
        	        	<description><![CDATA[<p>Hi Tony</p>
<p>Sorry to pester you about this but is there any chance might fixed in the next release 3.7.3 (?) I&#39;ve been asked to support this feature and my users are getting&#160; a bit impatient.</p>
<p>Thanks Again</p>
]]></description>
        	        	<pubDate>Thu, 05 Aug 2010 15:45:40 +0300</pubDate>
        </item>
        <item>
        	<title>teddyboy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p18731</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p18731</guid>
        	        	<description><![CDATA[<p>Hi Tony</p>
<p>Has this been fixed in the latest version ?</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Thu, 22 Jul 2010 11:47:32 +0300</pubDate>
        </item>
        <item>
        	<title>teddyboy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p17520</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p17520</guid>
        	        	<description><![CDATA[<p>Tried that it didn&#39;t work when I moved a column before a non-visible column thanks anyway.</p>
]]></description>
        	        	<pubDate>Fri, 28 May 2010 09:35:11 +0300</pubDate>
        </item>
        <item>
        	<title>easytea on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p17460</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p17460</guid>
        	        	<description><![CDATA[<p>Hey, I had a similar problem. Try setting keepHeader to false, that&#39;s what worked for me.</p>
</p>
<p>Good luck</p>
]]></description>
        	        	<pubDate>Wed, 26 May 2010 11:15:04 +0300</pubDate>
        </item>
        <item>
        	<title>tony on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p17067</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p17067</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Sorry no. I do not have a chance to investigate this, but definetley will do it.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 11 May 2010 14:57:20 +0300</pubDate>
        </item>
        <item>
        	<title>teddyboy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p16969</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p16969</guid>
        	        	<description><![CDATA[<p>Hi Tony</p>
<p>Can you tell me whether this bug is fixed in 3.6.5 ?</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Thu, 06 May 2010 16:38:28 +0300</pubDate>
        </item>
        <item>
        	<title>teddyboy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p16514</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p16514</guid>
        	        	<description><![CDATA[<p>Thanks Tony</p></p>
]]></description>
        	        	<pubDate>Mon, 19 Apr 2010 13:02:36 +0300</pubDate>
        </item>
        <item>
        	<title>tony on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p16465</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p16465</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Currently we check this bug</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 16 Apr 2010 17:10:05 +0300</pubDate>
        </item>
        <item>
        	<title>teddyboy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p16386</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p16386</guid>
        	        	<description><![CDATA[<p>Any update on this Tony there&#39;s still a problem using remapColumns in the latest release.</p>
</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Tue, 13 Apr 2010 17:10:30 +0300</pubDate>
        </item>
        <item>
        	<title>teddyboy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p16324</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p16324</guid>
        	        	<description><![CDATA[<p>Hi Tony</p>
<p>Has the issue been resolved yet, because I would like to do something similar and I have columns which are always hidden and others which the user can show/hide.</p>
</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Fri, 09 Apr 2010 10:10:45 +0300</pubDate>
        </item>
        <item>
        	<title>macbuoy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p14912</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p14912</guid>
        	        	<description><![CDATA[<p>Thanks!</p>
]]></description>
        	        	<pubDate>Wed, 17 Feb 2010 22:00:53 +0200</pubDate>
        </item>
        <item>
        	<title>tony on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p14873</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p14873</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Will look at this.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 17 Feb 2010 12:12:30 +0200</pubDate>
        </item>
        <item>
        	<title>macbuoy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p14775</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p14775</guid>
        	        	<description><![CDATA[<p>Hey Tony! Thanks for your reply. There are, indeed, some hidden fields. This is another one of the features I am saving to the server as my user&#39;s settings. Some columns permanently hidden by default and others might end up hidden by the user. Thanks, David</p>
<blockquote>
<p>tony said:</p>
</blockquote>
<blockquote>
<p>Hello,</p>
<p>Do you have hidden fields?</p>
<p>Best Regards</p>
<p>Tony</p>
</blockquote>
<hr />
]]></description>
        	        	<pubDate>Fri, 12 Feb 2010 22:58:31 +0200</pubDate>
        </item>
        <item>
        	<title>tony on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p14766</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p14766</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Do you have hidden fields?</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 12 Feb 2010 18:46:25 +0200</pubDate>
        </item>
        <item>
        	<title>macbuoy on problem with importing remapColumns grid option</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p14706</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-importing-remapcolumns-grid-option#p14706</guid>
        	        	<description><![CDATA[<p>I am exporting, saving to server and then importing grid options. I use this to save my user&#39;s preferences for <strong>data sorting</strong>, <strong>column width</strong> and <strong><span style="text-decoration: underline;">column re-ordering</span></strong>.</p>
<p>That last feature, <strong>column re-ordering</strong> is a bit of a problem. The grid options are exported and saved with the correct "remapColumns" parameter&#8211;it&#39;s the permutation array. When the grid loads and the saved options are imported, the columns are properly ordered by the permutation array but the column headings are left in the original, default order.</p>
<p><strong>gridOptions.remapColumns</strong> is exported as an array when using the grid export feature:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6289' value='Select Code' data-codeid='sfcode6289' /></p>
<div class='sfcode' id='sfcode6289'>gridOptions={<br />&#160;&#160;. . .<br />&#160;,&#34;remapColumns&#34;:[1,2,4,3,5,6]<br />&#160;&#160;. . .<br />};</div>
<p>again, this approach reorders the columns but leaves the headers in the wrong order.</p>
<p>I have also tried updating the remapColumns option before binding the grid so that it matches the remapColumns method signature:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit957' value='Select Code' data-codeid='sfcode957' /></p>
<div class='sfcode' id='sfcode957'>gridOptions={<br />&#160;&#160;. . .<br />&#160;&#160;,&#34;remapColumns&#34;:{&#34;permutation&#34;:[1,2,4,3,5,6],&#34;updateCells&#34;:true,&#34;keepHeader&#34;:true}<br />&#160;&#160;. . .<br />};</div>
<p>This last approach doesn&#39;t work at all on the columns OR the header row.</p>
<p>Many thanks for such a cool control!! Can anyone tell me what I&#39;m missing here or help me identify a bug?</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Wed, 10 Feb 2010 17:27:38 +0200</pubDate>
        </item>
</channel>
</rss>