<?xml version="1.0" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Preserve width after Column Chooser</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/preserve-width-after-column-chooser/</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Forum Version 4.1.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393&#038;feature-request&#038;preserve-width-after-column-chooser&#038;xfeed=topic" rel="self" type="application/rss+xml" />
<item>
	<title>bpcm on Preserve width after Column Chooser</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/preserve-width-after-column-chooser/#p25723</link>
	<category>Feature Request</category>
	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/preserve-width-after-column-chooser/#p25723</guid>
	<description><![CDATA[<p>Hello,</p>
<p>After a Colum Chooser event the width of the grid shrinks to the sum of the remaning columns.</p>
<p>If the grid&#39;s width is choosen (either by width:aNumber or autowidth:true), I believe there should be an option to preserve the width after a user removes a column.</p>
<p>This is what I am using:</p>
<br />
<div class="sfcode">.jqGrid(&#39;navButtonAdd&#39;, &#39;#pager&#39;, { caption:&#34;&#34;, buttonicon:&#34;ui-icon-calculator&#34;, title:&#34;Choose Columns&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onClickButton:function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var a = grid.width();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.jqGrid(&#39;columnChooser&#39;, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; done:function (perm) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (perm) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.setGridWidth(a);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<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; );<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }})</div>
<br />
<p>The columns stretch to fit the width, but the overall layout of the webpage is preserved.</p>
<p>Thanks,</p>
<p>bpcm</p>
<br />
]]></description>
	<pubDate>Wed, 18 Jan 2012 22:30:45 +0000</pubDate>
</item>
</channel>
</rss>