<?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: Function to recompute column width</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/function-to-recompute-column-width</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/feature-request/function-to-recompute-column-width/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Function to recompute column width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/function-to-recompute-column-width#p11390</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/function-to-recompute-column-width#p11390</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Upps, thanks. Fixed.</p>
]]></description>
        	        	<pubDate>Mon, 02 Nov 2009 09:03:09 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Function to recompute column width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/function-to-recompute-column-width#p11389</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/function-to-recompute-column-width#p11389</guid>
        	        	<description><![CDATA[<p>Thanks a lot, Tony!</p>
<p>One needs only a small change in code from <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jquery_ui_methods#column_chooser" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....mn_chooser</a>. In</p>
<p>jQuery("#list").jqGrid(&#39;columnChooser&#39;, {<br />&#160;&#160; done : function (perm) {<br />&#160;&#160;&#160;&#160;&#160; if (perm)&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; self.jqGrid("remapColumns", perm, true);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var gwdth = self.jqGrid("getGridParam","width");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; self.jqGrid("setGridWidth",gwdth);<br />&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; }<br />});</p>
<p>one should replace "self" to "this" or define local "self" as "this" like in the first line of columnChooser in grid.jqueryui.js ("var self = this;"):</p>
<p>jQuery("#list").jqGrid(&#39;columnChooser&#39;, {<br />&#160;&#160; done : function (perm) {<br />&#160;&#160;&#160;&#160;&#160; if (perm)&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.jqGrid("remapColumns", perm, true);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var gwdth = this.jqGrid("getGridParam","width");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.jqGrid("setGridWidth",gwdth);<br />&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; }<br />});</p>
<p>But last code do exactly what I wanted. Thank you.</p>
<p>Oleg</p>
]]></description>
        	        	<pubDate>Mon, 02 Nov 2009 08:55:56 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Function to recompute column width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/function-to-recompute-column-width#p11386</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/function-to-recompute-column-width#p11386</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jquery_ui_methods#column_chooser" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....mn_chooser</a></p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 02 Nov 2009 07:00:01 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Function to recompute column width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/function-to-recompute-column-width#p11384</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/function-to-recompute-column-width#p11384</guid>
        	        	<description><![CDATA[<p>Hello Tonny!</p>
</p>
<p>Version 3.6 has very nice new feature: resize grid. I use also another good feature: column chooser<span style="cursor: pointer;">. But there is a small problem in using: one needs sometime recompute the size of </span>grid after column chooser. I explane the problem on an example.</p>
</p>
<p>I have many tables with many columns. After displaying of such grid, the width of columns will be reduced to be able to show all&#160;columns. For some users some columns of the grid are not interesting, and users uses "column chooser<span style="cursor: pointer;">". But after the end of choosing of columns the </span>grid stay has columns with reduced size. If one resize grid (it&#39;s enough to change the size at least for one pixel) the width of columns will be recalculated and everithing looks like perfect. But I can not find a function to force such kind of width recalculation neither in jQuery UI resizable widget nor in jqGrid methods.</p>
</p>
<p>Is there a method for recomputing of  column&#39;s widthes already exists or you can include such method in jqGrid 3.6?</p>
</p>
<p>Thanks</p>
<p>Oleg</p>
]]></description>
        	        	<pubDate>Mon, 02 Nov 2009 06:11:55 +0200</pubDate>
        </item>
</channel>
</rss>