<?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: ShowHideCol function bug</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/showhidecol-function-bug</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/bugs/showhidecol-function-bug/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>lotjuh on ShowHideCol function bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/showhidecol-function-bug#p10927</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/showhidecol-function-bug#p10927</guid>
        	        	<description><![CDATA[<p>Thx for the hint. Will do that from now on.</p>
<p>Might be smart in the long term to make sure you&#39;re working with integers when you&#39;re expecting them though (-:</p>
]]></description>
        	        	<pubDate>Wed, 21 Oct 2009 05:13:36 +0300</pubDate>
        </item>
        <item>
        	<title>markw65 on ShowHideCol function bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/showhidecol-function-bug#p10895</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/showhidecol-function-bug#p10895</guid>
        	        	<description><![CDATA[<p>Unfortunately you&#39;ll have to fix a lot of other cases too. colModel[i].width is assumed to be an integer all over the place.</p>
</p>
<p>The best fix (unless tony goes to the trouble of fixing every use of colModel width) is to supply integer values for the widths...</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Tue, 20 Oct 2009 12:56:29 +0300</pubDate>
        </item>
        <item>
        	<title>lotjuh on ShowHideCol function bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/showhidecol-function-bug#p10889</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/showhidecol-function-bug#p10889</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>While playing with the showCol and hideCol functions, I stumbled upon a bug which resides both in the 3.5.x and 3.6 beta versions.</p>
</p>
<p>The bug:</p>
<p>I have 6 columns from which the first 2 are shown and the last 4 are hidden. I use a slider to dynamically rotate through the hidden and shown columns. When I slide my slider 1 step to the right, column 1 will be hidden and column 3 will be shown. Then when I slide my slider another step to the right, column 2 will be hidden and column 4 will be shown and my grid width will be resized to some really big size all of a suddon.</p>
</p>
<p>I&#39;ve been following this with firebug, and I see the following happen in the ShowHideCol function:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4091' value='Select Code' data-codeid='sfcode4091' /></p>
<div class='sfcode' id='sfcode4091'>
<p>$t.p.tblwidth is currently 500</p>
<p>this.width is currently "16"</p>
<p><span class="sourceRowText">$t.p.tblwidth += this.width is called</span></p>
<p>$t.p.tblwidth is now 50016</p>
</div>
<p>My solution:</p>
<p>replace the code in <span class="sourceRowText">ShowHideCol : function(colname,show) </span>:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9425' value='Select Code' data-codeid='sfcode9425' /></p>
<div class='sfcode' id='sfcode9425'>if(show == "none") $t.p.tblwidth -= this.width; else $t.p.tblwidth += this.width;</div>
<p>with</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9200' value='Select Code' data-codeid='sfcode9200' /></p>
<div class='sfcode' id='sfcode9200'>if(show == "none") $t.p.tblwidth -= parseInt(this.width); else $t.p.tblwidth += parseInt(this.width);</div>
</p>
<p>Kind regards Lotte-Sara Laan</p>
]]></description>
        	        	<pubDate>Tue, 20 Oct 2009 11:30:23 +0300</pubDate>
        </item>
</channel>
</rss>