<?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: hideCol Error</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/hidecol-error</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/hidecol-error/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>GregT on hideCol Error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hidecol-error#p24941</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hidecol-error#p24941</guid>
        	        	<description><![CDATA[<p>Not sure if you are interested, but it appears that the second issue (&#39;stype undefined&#39;) happens as follows:</p>
</p>
<p>1. treeGrid:true,&#160;datatype:&#39;jsonstring&#39; (&#39;jsonstring&#39; is a documented requirement for treeGrid).</p>
<p>2. When you do &#39;GetGridParam&#39;, the &#39;datatype&#39; has been set back to &#39;local&#39; somewhere inside jqGrid.</p>
<p>3. This causes the attempt to create the new version of the grid to fail.</p>
</p>
<p>Solution:&#160;</p>
<p><em>var ccm = $("#treegrid").getGridParam();</em></p>
<p><em><strong>// force datatype back to what we originally set it to, and what treeGrid needs</strong></em></p>
<p><em><strong>ccm.datatype = &#39;jsonstring&#39;;</strong></em></p>
<p><em>$("#treegrid").jqGrid("GridUnload");</em></p>
<p><em>$("#treegrid").jqGrid(ccm);</em></p>
</p>
<p>I could send a complete example if you want.</p>
</p>
<p>I&#39;m still working on the hideCol one &#8230; I&#39;m pretty sure it&#39;s specific to treeGrid, though, and this explains why your demo works. Of course, one would hope that hideCol works in the treeGrid as well.</p>
]]></description>
        	        	<pubDate>Thu, 20 Oct 2011 17:56:45 +0300</pubDate>
        </item>
        <item>
        	<title>GregT on hideCol Error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hidecol-error#p24937</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hidecol-error#p24937</guid>
        	        	<description><![CDATA[<p>Thank you for your reply, Tony. I will put an example together sometime today.</p>
<p>On a related note, do you agree that this code (below) should always work, assuming &#39;#treegrid&#39; starts off as a normal, successfully rendered, &#39;working&#39; grid?</p>
<p><em>var ccm = $("#treegrid").getGridParam();</em></p>
<p><em>$("#treegrid").jqGrid("GridUnload");</em></p>
<p><em>$("#treegrid").jqGrid(ccm);</em></p>
<p>It yields a GC error, "Uncaught TypeError: Cannot read property &#39;stype&#39; of undefined". I will isolate this as well, if it would be useful to you.</p>
]]></description>
        	        	<pubDate>Thu, 20 Oct 2011 17:05:18 +0300</pubDate>
        </item>
        <item>
        	<title>tony on hideCol Error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hidecol-error#p24926</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hidecol-error#p24926</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>We need a test case. There is no error if we use the demo here</p>
<p><a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....qgrid.html</a></p>
</p>
<p>New in version 3.2 =&#62; Hide/Show columns</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 20 Oct 2011 04:04:27 +0300</pubDate>
        </item>
        <item>
        	<title>GregT on hideCol Error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/hidecol-error#p24923</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/hidecol-error#p24923</guid>
        	        	<description><![CDATA[<p>This code:</p>
<p><em>$("#mygrid").jqGrid("hideCol",col_name);</em></p>
</p>
<p>Yields this (in GC):</p>
<p><em>Uncaught TypeError: Cannot read property &#39;width&#39; of undefined</em></p>
</p>
<p>The hide works (eg. the column disappears), so col_name must be OK, and the grid is otherwise working fine.</p>
</p>
<p>Any advice?</p>
]]></description>
        	        	<pubDate>Wed, 19 Oct 2011 20:40:31 +0300</pubDate>
        </item>
</channel>
</rss>