<?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: Column minimal width</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/column-minimal-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/column-minimal-width/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>boson on Column minimal width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/column-minimal-width#p24955</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/column-minimal-width#p24955</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I would like to have min-width as a new colum model option. That would be really useful to be able to set a minimum with for&#160; certain columns.</p>
</p>
<p>Boson</p>
]]></description>
        	        	<pubDate>Fri, 21 Oct 2011 16:27:46 +0300</pubDate>
        </item>
        <item>
        	<title>Ridge on Column minimal width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/column-minimal-width#p22339</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/column-minimal-width#p22339</guid>
        	        	<description><![CDATA[<p>Hi, sorry but I&#39;m not a pro developers.&#160;</p>
</p>
<p>Where I &#160;put your code? There is any change to do?</p>
<p>In the configuration function of the grid I have to add something?</p>
</p>
<p>Thank you&#160;</p>
]]></description>
        	        	<pubDate>Tue, 08 Mar 2011 11:40:31 +0200</pubDate>
        </item>
        <item>
        	<title>Jarlax on Column minimal width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/column-minimal-width#p19587</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/column-minimal-width#p19587</guid>
        	        	<description><![CDATA[<p>In some cases it would be great to have minimal width for columns. This is useful when grid has button columns, or size of column should be restricted by header + sort arrow.</p>
<p>My solution for this was extension method:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8794' value='Select Code' data-codeid='sfcode8794' /></p>
<div class='sfcode' id='sfcode8794'>enableMinWidth: function() {<br /> &#160;&#160;var $t = this[0];<br /> &#160;&#160;if (!$t.grid) { return; }<br /> &#160;&#160;$t.grid.dragMove = function(x) {<br /> &#160;&#160; &#160;if (this.resizing) {<br /> &#160;&#160; &#160; &#160;var diff = x.clientX - this.resizing.startX,<br /> &#160;&#160; &#160; &#160; &#160;h = this.headers[this.resizing.idx],<br /> &#160;&#160; &#160; &#160; &#160;mW = $t.p.colModel[this.resizing.idx].minWidth &#124;&#124; 33,<br /> &#160;&#160; &#160; &#160; &#160;newWidth = $t.p.direction === &#34;ltr&#34; ? h.width + diff : h.width - diff, hn, nWn, nmWn;<br /> &#160;&#160; &#160; &#160;if (newWidth &#62; mW) {<br /> &#160;&#160; &#160; &#160; &#160;this.curGbox.css({ left: this.resizing.sOL + diff });<br /> &#160;&#160; &#160; &#160; &#160;if ($t.p.forceFit === true) {<br /> &#160;&#160; &#160; &#160; &#160; &#160;hn = this.headers[this.resizing.idx + $t.p.nv];<br /> &#160;&#160; &#160; &#160; &#160; &#160;nmWn = $t.p.colModel[this.resizing.idx + $t.p.nv].minWidth &#124;&#124; 33;<br /> &#160;&#160; &#160; &#160; &#160; &#160;nWn = $t.p.direction === &#34;ltr&#34; ? hn.width - diff : hn.width + diff;<br /> &#160;&#160; &#160; &#160; &#160; &#160;if (nWn &#62; nmWn) {<br /> &#160;&#160; &#160; &#160; &#160; &#160; &#160;h.newWidth = newWidth;<br /> &#160;&#160; &#160; &#160; &#160; &#160; &#160;hn.newWidth = nWn;<br /> &#160;&#160; &#160; &#160; &#160; &#160;}<br /> &#160;&#160; &#160; &#160; &#160;} else {<br /> &#160;&#160; &#160; &#160; &#160; &#160;this.newWidth = $t.p.direction === &#34;ltr&#34; ? $t.p.tblwidth + diff : $t.p.tblwidth - diff;<br /> &#160;&#160; &#160; &#160; &#160; &#160;h.newWidth = newWidth;<br /> &#160;&#160; &#160; &#160; &#160;}<br /> &#160;&#160; &#160; &#160;}<br /> &#160;&#160; &#160;}<br /> &#160;&#160;}<br /> }</div>
<p>It is not perfect but it works.</p>
<p>It would be great to see something similar integrated in future releases of jqGrid.</p>
]]></description>
        	        	<pubDate>Wed, 08 Sep 2010 12:14:32 +0300</pubDate>
        </item>
</channel>
</rss>