<?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 4.1.0 shrinkToFit/grouping change</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-1-0-shrinktofitgrouping-change</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-4-1-0-shrinktofitgrouping-change/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>dlandis on jqGrid 4.1.0 shrinkToFit/grouping change</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-1-0-shrinktofitgrouping-change#p23621</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-1-0-shrinktofitgrouping-change#p23621</guid>
        	        	<description><![CDATA[<p>OK I changed my configuration so now I am using autowidth: true and now 4.1.0 works fine.</p>
</p>
<p>Maybe the problem was that I was not setting width or autowidth in my grid setup. That is just a guess.</p>
]]></description>
        	        	<pubDate>Wed, 15 Jun 2011 20:54:04 +0300</pubDate>
        </item>
        <item>
        	<title>dlandis on jqGrid 4.1.0 shrinkToFit/grouping change</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-1-0-shrinktofitgrouping-change#p23620</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-4-1-0-shrinktofitgrouping-change#p23620</guid>
        	        	<description><![CDATA[<p>I upgraded 4.0.0 to 4.1.0 in my application. One particular grid stopped working which uses grouping, shrinkToFit, and groupColumnShow: [false].</p>
</p>
<p>I looked at the code in firebug and the change that causes the error is showHideCol function:</p>
<p>4.0.0:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3335' value='Select Code' data-codeid='sfcode3335' /></p>
<div class='sfcode' id='sfcode3335'>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; if(fndh===true) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if($t.grid.width!==$t.p.tblwidth) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$($t).jqGrid(&#34;setGridWidth&#34;,$t.p.shrinkToFit===true?$t.grid.width:$t.p.tblwidth,true);<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;&#160; &#160;}</div>
</p>
<p>4.1.0:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5357' value='Select Code' data-codeid='sfcode5357' /></p>
<div class='sfcode' id='sfcode5357'>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; if(fndh===true) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if($t.p.shrinkToFit === false) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$($t).jqGrid(&#34;setGridWidth&#34;,$t.grid.width );<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;} else if($t.grid.width!==$t.p.tblwidth) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $($t).jqGrid(&#34;setGridWidth&#34;,$t.p.tblwidth );&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}</div>
<p>Basically it is calling setGridWidth and passing in tblwidth in 4.1.0 whereas it was passing in grid.width in 4.0.0. I changed my version of 4.1.0 and now it works &#8212; but of course I don&#39;t know what else this would effect:</p>
</p>
<p>4.1.0 (my version):</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5379' value='Select Code' data-codeid='sfcode5379' /></p>
<div class='sfcode' id='sfcode5379'>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; if(fndh===true) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if($t.p.shrinkToFit === false) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$($t).jqGrid(&#34;setGridWidth&#34;,$t.grid.width );<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;} else if($t.grid.width!==$t.p.tblwidth) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;//$($t).jqGrid(&#34;setGridWidth&#34;,$t.p.tblwidth );<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$($t).jqGrid(&#34;setGridWidth&#34;,$t.grid.width );&#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;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}</div>
</p>
<p>Here is the commit:</p>
</p>
<p><a href="https://github.com/tonytomov/jqGrid/commit/a2572bd35a1fe195f8c4d2223d67a1831b96cdce" rel="nofollow" target="_blank">https://github.com/tonytomov/jqGrid/commit/a2572bd35a1fe195f8c4d2223d67a1831b96cdce</a></p></p>
]]></description>
        	        	<pubDate>Wed, 15 Jun 2011 20:23:50 +0300</pubDate>
        </item>
</channel>
</rss>