<?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: Cannot set column width, tried everything</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cannot-set-column-width-tried-everything</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/cannot-set-column-width-tried-everything/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Cannot set column width, tried everything</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cannot-set-column-width-tried-everything#p14573</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cannot-set-column-width-tried-everything#p14573</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The whole width of the column is width + padding + border - did you have see these values in firebug?</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 05 Feb 2010 12:11:32 +0200</pubDate>
        </item>
        <item>
        	<title>metawake on Cannot set column width, tried everything</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cannot-set-column-width-tried-everything#p14515</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cannot-set-column-width-tried-everything#p14515</guid>
        	        	<description><![CDATA[<p>I have a jqGrid with just 2 columns.<br />The problem is that size of columns is not the same that I&#39;ve set in their "<strong>Width</strong>" property.<br />E.g. I have specified</p>
<p><em>Column1 width = 150px, Column2 width: 80px</em></p>
<p>But when I load jqGrid, I see that sizes of respective column and data cells are slightly different.<br />Indeed, when I look up width values in <strong><span style="text-decoration: underline;">FireBug </span></strong>I can see</p>
<p><em>Header1 width = 147.4px, Header2 width: 78.8px (!!!)<br />Column1 width = 148.33px, Column2 width: 77.667px</em> (!!!)</p>
<p>So their sum is the same is above, but item values are slightly different.<br />If I add a couple more columns, this distortion becomes more visible with each next column.</p>
<p>I&#39;ve made sure, that <strong>shrinkToFit option = false</strong>, so that only real pixel values will be used, not proportions.<br />But this behaviour persists both with shrinkToFit option = true, but disproportion between headers/data is slighly different.<br />So even with <strong>shrinkToFit</strong> set to false, where I am supposed to have total control over column/header width, "someone" changes my values. I&#39;ve made sure that no external css is included, so no external incluences can be considered.<br />Also, columns names/values are short and fit nicely inside of columns, they don&#39;t "expand them".</p>
<p>What can be the problem? Is there any option I missed or misunderstand?</p>
<p>The grid options code is smth like this:</p>
<p><em>url: &#39;myurl.com&#39;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; height: "auto",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; treeGrid: true, treeGridModel : &#39;adjacency&#39;, ExpandColumn : &#39;TreeField&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; loadonce: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; prmNames: {sort: "sidx2&#8243;, order: "sord2&#8243;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; shrinkToFit: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; imgpath: &#39;themes/basic/images&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; caption: &#39;MyGrid&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; rowNum: -1</em></p>
</p>
<p>Playing with &#160;&#160;</p>
<p><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //autowidth: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; //forceFit: false,</em><br />didn&#39;t align headers with data either.</p>
<p>Also, would jqGrid allow if I set width values with direct jQuery calls?</p>
]]></description>
        	        	<pubDate>Wed, 03 Feb 2010 13:21:56 +0200</pubDate>
        </item>
</channel>
</rss>