<?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: How to, well behaved, max width 100%  jqGrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-well-behaved-max-width-100-jqgrid</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/help/how-to-well-behaved-max-width-100-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on How to, well behaved, max width 100%  jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-well-behaved-max-width-100-jqgrid#p30568</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-well-behaved-max-width-100-jqgrid#p30568</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I have not tested this, but I would say - Thank you very much for sharing your solution.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Sat, 03 May 2014 10:07:16 +0300</pubDate>
        </item>
        <item>
        	<title>Dafydd on How to, well behaved, max width 100%  jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-well-behaved-max-width-100-jqgrid#p30551</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-well-behaved-max-width-100-jqgrid#p30551</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>Thought I would share how I got jqGrid to behave in the way I wanted as the container/page resized in width.</p>
<p>I wanted to preserve the column model, refrain from expanding past the container/page width and forcing the horizontal scroll bar to kick in, at the same time not to strech if there are not enough columns to fit the container.</p>
<p>The data I was displaying could have any number of columns in it, of varying sizses, and the container/page can also vary in width based on user prefrences/screen size or browser window.</p>
</p>
<p>Fist thing to do is diasble&#160; ShrinkToFit="false"</p>
</p>
<p>Then add some css rules to your page, overriding the ui rules: -</p>
</p>
<p>/*stops the grid expanding past the bounds of the container, but allows it to shrink below when there are too few columns*/</p>
<p>.ui-jqgrid-htable,<br />.ui-jqgrid-btable,<br />.ui-jqgrid-pager,<br />.ui-jqgrid-view,<br />.ui-jqgrid-bdiv,<br />.ui-jqgrid-hdiv,<br />.ui-jqgrid-hbox,<br />.ui-jqgrid { max-width: 100% !important; }</p>
<p>/*this fixes a bug when you fully scroll to the right when you have many columns in the grid*/</p>
<p>.ui-jqgrid-htable { padding-right: 17px; }<br />.ui-jqgrid-hbox { padding-right: 0px !important; }</p>
</p>
<p>If you want small grids (low column count) to expand and use the full width of the container, you can add a width rule: -</p>
</p>
<p>.ui-jqgrid-htable,<br />.ui-jqgrid-btable,<br />.ui-jqgrid-pager,<br />.ui-jqgrid-view,<br />.ui-jqgrid-bdiv,<br />.ui-jqgrid-hdiv,<br />.ui-jqgrid-hbox,<br />.ui-jqgrid { max-width: 100% !important; width:100% !important; }</p>
</p>
<p>Hope this helps someone 🙂</p>
]]></description>
        	        	<pubDate>Mon, 28 Apr 2014 13:15:42 +0300</pubDate>
        </item>
</channel>
</rss>