<?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: Widths in grid in % instead of px</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/widths-in-grid-in-instead-of-px</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/widths-in-grid-in-instead-of-px/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>marinos on Widths in grid in % instead of px</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/widths-in-grid-in-instead-of-px#p17007</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/widths-in-grid-in-instead-of-px#p17007</guid>
        	        	<description><![CDATA[<p>I solved the problem by encapsulating another div. <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
<p>&#60;div style="position:relative; margin:10px; padding:4px; width:auto;" id="A"&#62;</p>
<p>&#160;&#160; &#60;div style="position:relative; padding:0; margin:0;" id="B"&#62;</p>
<p>&#160;&#160;&#160;&#160; &#60;table id="jqGrid"&#62;&#60;/table&#62;</p>
<p>&#160;&#160; &#60;/div&#62;</p>
<p>&#60;/div&#62;</p>
</p>
<p>setting padding to #B will not resize the grid.</p>
<p>setting padding to #A will resize the grid.</p>
]]></description>
        	        	<pubDate>Fri, 07 May 2010 18:03:31 +0300</pubDate>
        </item>
        <item>
        	<title>marinos on Widths in grid in % instead of px</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/widths-in-grid-in-instead-of-px#p17005</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/widths-in-grid-in-instead-of-px#p17005</guid>
        	        	<description><![CDATA[<p>I would like to encapsulate the grid into a box and give the box a padding and margin. The padding and margin don&#39;t seem to affect the width of the grid.</p>
<p>Then resizing the grid is complicated, because a setGridWidth function is needed to set the grid width and column widths right. Especially when the user has resized the columns. An extra complexity over /blog/?page_id=393/feature-request/resizable-jqgrid-my-solution-but-needs-improving/&#38;value=width&#38;type=1&#38;include=1&#38;search=1</p>
<p>Maybe I overlooked a functionality, but is there a possibility to make those widths relative?</p>
<p>You can use percentages instead of pixels to determine grid width and column widhts instead of pixels.</p>
<p>Percentages can be set with an accuracy of .1%. For example a grid of 1680 pixels wide can be set with 1.7 pixels accuracy (=.1%).</p>
<p>(What disadvantages comes with this change?)</p>
<p>Can you set the column widths and grid width to % instead of pixels?</p>
]]></description>
        	        	<pubDate>Fri, 07 May 2010 17:09:48 +0300</pubDate>
        </item>
</channel>
</rss>