<?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: jqGrid width not adjusted in showCol/hideCol in case of shrinkToFit === false</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-width-not-adjusted-in-showcolhidecol-in-case-of-shrinktofit-false</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/jqgrid-width-not-adjusted-in-showcolhidecol-in-case-of-shrinktofit-false/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on jqGrid width not adjusted in showCol/hideCol in case of shrinkToFit === false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-width-not-adjusted-in-showcolhidecol-in-case-of-shrinktofit-false#p24260</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-width-not-adjusted-in-showcolhidecol-in-case-of-shrinktofit-false#p24260</guid>
        	        	<description><![CDATA[<p>Hello Oleg,</p>
<p>Thank again. This is right, since we already analyze shrinkToFit in setGridWidth <img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" /></p>
</p>
<p>Thanks again.</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 14 Aug 2011 11:41:26 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on jqGrid width not adjusted in showCol/hideCol in case of shrinkToFit === false</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-width-not-adjusted-in-showcolhidecol-in-case-of-shrinktofit-false#p24098</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-width-not-adjusted-in-showcolhidecol-in-case-of-shrinktofit-false#p24098</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>at the showHideCol one have <a href="https://github.com/tonytomov/jqGrid/blob/v4.1.2/js/grid.base.js#L2864" target="_blank">the following lines of code</a>:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4513' value='Select Code' data-codeid='sfcode4513' /></p>
<div class='sfcode' id='sfcode4513'>if(fndh===true) {<br />&#160; &#160; if($t.p.shrinkToFit === false) {<br />&#160; &#160; &#160; &#160; $($t).jqGrid(&#34;setGridWidth&#34;,<strong>$t.grid.width</strong> );<br />&#160; &#160; } else if($t.grid.width!==$t.p.tblwidth) {<br />&#160; &#160; &#160; &#160; $($t).jqGrid(&#34;setGridWidth&#34;,$t.p.tblwidth );<br />&#160; &#160; }<br />}&#160;</div>
<p>The problem is that in the code above the&#160;<strong>$t.p.tblwidth</strong> value will be changed and the the <strong>fndh</strong> will be set to <strong>true</strong> in the case. The value of <strong>$t.grid.width</strong> will be <span style="text-decoration: underline;"><em>not changed</em></span>, so the code do nothing in case of <strong>shrinkToFit === false</strong>. It seems to me that the code should be just the following:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2036' value='Select Code' data-codeid='sfcode2036' /></p>
<div class='sfcode' id='sfcode2036'>if(fndh===true) {<br />&#160; &#160; $($t).jqGrid(&#34;setGridWidth&#34;, $t.p.tblwidth);<br />}</div>
<p>Best regards<br />Oleg&#160;</p></p>
]]></description>
        	        	<pubDate>Fri, 29 Jul 2011 13:47:41 +0300</pubDate>
        </item>
</channel>
</rss>