<?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: last column width grows when calling setGridWidth</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth</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/last-column-width-grows-when-calling-setgridwidth/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15363</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15363</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks.</p>
<p>This will stay for now as it is written. I will do some more experiments with this.</p>
<p>Best Regards</p>
]]></description>
        	        	<pubDate>Thu, 04 Mar 2010 19:14:02 +0200</pubDate>
        </item>
        <item>
        	<title>pbor on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15323</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15323</guid>
        	        	<description><![CDATA[<p>I realized that maybe you simply mean resizing manually in the browser (not with an api): that should make it easier since I guess if you enlarge a column you just remove width from the nearby column, so</p>
<p>col1_ratio = old_ratio * (new_width / old_width) = 0.5 ( 20 / 15)</p>
<p>col2_ration = 0.4 * ((12 - 5) / 12)</p>
]]></description>
        	        	<pubDate>Wed, 03 Mar 2010 00:48:50 +0200</pubDate>
        </item>
        <item>
        	<title>pbor on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15322</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15322</guid>
        	        	<description><![CDATA[<p>I didn&#39;t realize there was an api to set a single col width, which api is that?</p>
</p>
<p>what does happen today when setting only the first col from 15 to 20? does the whole grid grow of 5 px or is the 5 px removed from the other columns?</p>
</p>
<p>I guess when setting a single column, you just need to renormalize the ratios. how to do that depends on the desired result, in particular if setting a single col width changes the whole table width or if the width difference is redistributed among other columns.</p>
]]></description>
        	        	<pubDate>Wed, 03 Mar 2010 00:39:10 +0200</pubDate>
        </item>
        <item>
        	<title>tony on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15320</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15320</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Here are my tests,</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9358' value='Select Code' data-codeid='sfcode9358' /></p>
<div class='sfcode' id='sfcode9358'>
<p>initial size:</p>
<p>&#160;&#160;&#160; 3 columns of with 10, 8, 2, total width 20</p>
</p>
<p>store ratios (stored in float values for each col)</p>
<p>&#160;&#160; first col ratio = 10/20 = 0.5, sec col ratio = 8/20 = 0.4, third col ratio = 2/20 = 0.1</p>
</p>
<p>table resized to width 30</p>
<p>&#160;&#160; first col size = floor(30 * 0.5) = 15</p>
<p>&#160;&#160; sec col size = floor(30 * 0.4) = 12</p>
<p>&#160;&#160; last col = 30 &#8211; 15 &#8211; 12 = 3</p>
<p>&#8230;</p>
</p>
</div>
<p>After first resize to 30 try to resize the first column &#8211; not the grid to let say to 20px,</p>
<p>then set the new grid width&#160; and see the result <img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" /></p>
<p>Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Wed, 03 Mar 2010 00:05:10 +0200</pubDate>
        </item>
        <item>
        	<title>pbor on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15315</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15315</guid>
        	        	<description><![CDATA[<p>Hi Tony, yes when I played with this I also saw that round() does seem to fix the issue most of the time, but I do not think it is a good idea: even if in most cases things tend to "work out", using round could mean that the final width of the table may be larger of some pixel of the the reuqested width.</p>
<p>For instance suppose you have 15 columns of 5 pixels and they all get a new width 5.6, so the total width is 15*5.6=84 pixels, you end up with the first 9 columns taking 15*6=90 pixels, now even making the last column of width 0, the table is larger than 84 pixels, which would cause big problems if the table has to fit in a parent that has with 84!</p>
</p>
<blockquote>
<p>The reason is that when we have only initiall calculation of the ratio after resizing columns and calling the setGridWidth the width of the columns have the initial state</p>
</blockquote>
<p>I am not sure I understand what you mean here... let me try to explain what I had in mind in pseudocode</p>
</p>
<p>initial size:</p>
<p>&#160;&#160;&#160; 3 columns of with 10, 8, 2, total width 20</p>
</p>
<p>store ratios (stored in float values for each col)</p>
<p>&#160;&#160; first col ratio = 10/20 = 0.5, sec col ratio = 8/20 = 0.4, third col ratio = 2/20 = 0.1</p>
</p>
<p>table resized to width 30</p>
<p>&#160;&#160; first col size = floor(30 * 0.5) = 15</p>
<p>&#160;&#160; sec col size = floor(30 * 0.4) = 12</p>
<p>&#160;&#160; last col = 30 - 15 - 12 = 3</p>
</p>
<p>table resized to width 35</p>
<p>&#160;&#160; first col size = floor(35 * 0.5) = 17</p>
<p>&#160;&#160; sec col size = floor(35 * 0.4) = 14</p>
<p>&#160;&#160; last col = 35 - 17 - 14 = 4</p>
</p>
<p>etc</p>
</p>
<p>As you see the at each setGridWidth, the width of the column has these properties:</p>
<p>1) it depends only on the initial proportion of the widths and not on the previous width hence approximation errors do not grow at each resize</p>
<p>2) width is guaranteed to be equal to the total width set</p>
<p>Best regards and as usual huge thanks for jqgrid.</p>
</p>
<blockquote>
</blockquote>
]]></description>
        	        	<pubDate>Tue, 02 Mar 2010 23:15:13 +0200</pubDate>
        </item>
        <item>
        	<title>tony on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15298</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15298</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I have fixed the issue (I hope). When I try to paly with your recommendation it seems that this not work properly.</p>
<p>The reason is that when we have only initiall calculation of the ratio after resizing columns and calling the setGridWidth the width of the columns have the initial state.</p>
<p>Also I use now round which seems to work ok. In my tests the remaining pixels for the last visible column&#160; is maximum +(-) 2, note that in some cases it can be + in other it can be -.</p>
<p>You can test the new recalculation.</p>
<p>The fix is here:</p>
<p><a href="http://github.com/tonytomov/jqGrid/commit/232fa3077847bcdc3733e59e4f625d2d86c62b14" rel="nofollow" target="_blank"><a href="http://github.com/tonytomov/jq" rel="nofollow">http://github.com/tonytomov/jq</a>.....2d86c62b14</a></p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 02 Mar 2010 14:53:13 +0200</pubDate>
        </item>
        <item>
        	<title>tony on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15213</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15213</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I wil playthis Sunday with this.</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 27 Feb 2010 19:51:29 +0200</pubDate>
        </item>
        <item>
        	<title>pbor on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15203</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15203</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Until now - no (sorry). There is is no appropriate fix for this bug.</p>
</blockquote>
<hr />
<p>What about the solution I proposed above? did you try and it does not work? I hope to have time to try it myself, but jqgrid internals are still a bit intimidating for me <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
</p>
<p>Thanks for all your work on jqgrid</p>
]]></description>
        	        	<pubDate>Fri, 26 Feb 2010 22:54:14 +0200</pubDate>
        </item>
        <item>
        	<title>tony on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15194</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15194</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Until now - no (sorry). There is is no appropriate fix for this bug.</p>
<p>Thanks</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 26 Feb 2010 21:30:12 +0200</pubDate>
        </item>
        <item>
        	<title>sebabal on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15138</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p15138</guid>
        	        	<description><![CDATA[<p>hi i was wondering if there are any fix for this problem?</p>
<p>regards,</p>
<p>sebastian</p>
]]></description>
        	        	<pubDate>Thu, 25 Feb 2010 00:16:31 +0200</pubDate>
        </item>
        <item>
        	<title>tony on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14621</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14621</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. Will give a try.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 08 Feb 2010 12:10:42 +0200</pubDate>
        </item>
        <item>
        	<title>pbor on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14587</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14587</guid>
        	        	<description><![CDATA[<p>I have been looking again at this problem and the issue is due to the following code in setGridWidth:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8249' value='Select Code' data-codeid='sfcode8249' /></p>
<div class='sfcode' id='sfcode8249'>
<p>...</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; if(this.hidden === false &#38;&#38; !this.fixed){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;cw = Math.floor((aw)/($t.p.tblwidth-tw)*this.width);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;this.width =cw;</p>
<p>...</p>
</div>
<p>Since you are using "floor" all sizes are rounded down the nearest int and the remainder gets added to the last column: when repeating this process many times this effect grows every time causing the issue we are seeing.</p>
</p>
<p>What do you think&#160; of the following idea: when first calculating the size of each col, store the colWidth/totalWidth ratio of each column in a float. When resizing the grid, the colwidth is calculated by doing floor(newTotalWidth * colRatio). This way the proportion between the width of each column would remain stable over time even when calling setGridWidth many times.</p>
]]></description>
        	        	<pubDate>Fri, 05 Feb 2010 18:37:42 +0200</pubDate>
        </item>
        <item>
        	<title>tony on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14132</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14132</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for the example and the test case provided.</p>
<p>Yes, I see the problem (bug) and confirm it.</p>
<p>Will try to correct it.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 22 Jan 2010 11:14:57 +0200</pubDate>
        </item>
        <item>
        	<title>pbor on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14090</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14090</guid>
        	        	<description><![CDATA[<p>ok, I now created a small testcase</p>
</p>
<p>by the time the timeout is removed the last column is wider then the first two</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7790' value='Select Code' data-codeid='sfcode7790' /></p>
<div class='sfcode' id='sfcode7790'>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br />&#160;&#160;&#160; "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;<br />&#60;html xmlns="http://www.w3.org/1999/xhtml"&#62;<br />&#160; &#60;head&#62;<br />&#160;&#160;&#160; &#60;title&#62;<br />&#160;&#160;&#160;&#160;&#160; Testcase<br />&#160;&#160;&#160; &#60;/title&#62;<br />&#160;&#160;&#160; &#60;link rel="stylesheet" href="jquery-ui.css" type="text/css" media="all"&#62;<br />&#160;&#160;&#160; &#60;link rel="stylesheet" href="ui.jqgrid.css" type="text/css" media="all"&#62;<br />&#160;&#160;&#160; &#60;script src="jquery.min.js" type="text/javascript" charset="utf-8"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src="grid.locale-en.js" type="text/javascript" charset="utf-8"&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script src="jquery.jqGrid.js" type="text/javascript" charset="utf-8"&#62;&#60;/script&#62;</p>
<p>&#160;&#160;&#160; &#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; $(document).ready(function(){</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; var grid = $(&#39;#theGrid&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype:&#39;clientSide&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; altRows:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Name&#39;, &#39;Side&#39;, &#39;Power&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name:&#39;name&#39;, index: &#39;name&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name:&#39;side&#39;, index: &#39;side&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name:&#39;power&#39;, index: &#39;power&#39; } ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.addRowData("1", {name:"Luke", side:"Good", power:"6"});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.addRowData("2", {name:"Vader", side:"Dark", power:"9"});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.addRowData("3", {name:"Han", side:"meh?", power:"0"});</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; var width = 800;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var id;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; id = setInterval(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width -= 5;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (width &#60; 100)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; clearInterval(id); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.setGridWidth(width);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }, 300);<br />&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160; &#60;/script&#62;<br />&#160; &#60;/head&#62;<br />&#160; &#60;body&#62;<br />&#160;&#160;&#160; &#60;table id="theGrid" class="scroll"&#62;&#60;/table&#62; <br />&#160; &#60;/body&#62;<br />&#60;/html&#62;</p>
</div>
]]></description>
        	        	<pubDate>Wed, 20 Jan 2010 21:50:08 +0200</pubDate>
        </item>
        <item>
        	<title>pbor on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14012</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14012</guid>
        	        	<description><![CDATA[<p>Yeah, you are right... it&#39;s kind of hard to extract a minimal test case 🙂</p>
</p>
<p>Anyway, here is at least the code I am using for the resizing. I&#39;ll try to also make a standalone testcase, but it may take a bit</p>
</p>
<p>this is the jquery code I use to track the chane of width of the container</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1110' value='Select Code' data-codeid='sfcode1110' /></p>
<div class='sfcode' id='sfcode1110'>
<p>&#160;&#160;&#160; jQuery.event.special.widthchange = {<br />&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; setup: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var self, oldw, neww;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; self = this;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; oldw = $(self).width();</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(self).data(&#39;widthchange_timer&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; setInterval(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; neww = $(self).width();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (neww !== oldw) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; oldw = neww;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery.event.handle.call(self, {type:&#39;widthchange&#39;});<br />&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160; }, 200)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; );<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; teardown: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; clearInterval( $(this).data(&#39;widthchange_timer&#39;));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; };</p>
</div>
<p>this is how I attach it to my jqgrid:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3834' value='Select Code' data-codeid='sfcode3834' /></p>
<div class='sfcode' id='sfcode3834'>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.widthDiv.bind(&#39;widthchange&#39;, function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; self.table.fluidGrid({example: this.widthDiv});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</div>
</p>
<p>fluidgrid is this small but very useful plugin:</p>
</p>
<p><a href="http://code.google.com/p/codeincubator/source/browse/Samples/steveharman/jQuery/jquery.jqgrid.fluid/jquery.jqGrid.fluid.js" rel="nofollow" target="_blank"><a href="http://code.google.com/p/codei" rel="nofollow">http://code.google.com/p/codei</a>.....d.fluid.js</a></p>
]]></description>
        	        	<pubDate>Mon, 18 Jan 2010 22:54:56 +0200</pubDate>
        </item>
        <item>
        	<title>tony on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14004</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p14004</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Code please!</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 18 Jan 2010 21:37:09 +0200</pubDate>
        </item>
        <item>
        	<title>pbor on last column width grows when calling setGridWidth</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p13997</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/last-column-width-grows-when-calling-setgridwidth#p13997</guid>
        	        	<description><![CDATA[<p>We track when the parent changes width and call setGridWidth to resize the grid to fit the parent.</p>
</p>
<p>There is a bug that causes the last column to grow in relative width every time you call setGridWidth.</p></p>
]]></description>
        	        	<pubDate>Mon, 18 Jan 2010 19:44:58 +0200</pubDate>
        </item>
</channel>
</rss>