<?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: setGridWidth returns col&#091;n&#093; not defined error</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridwidth-returns-coln-not-defined-error</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/bugs/setgridwidth-returns-coln-not-defined-error/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rheenen on setGridWidth returns col&#091;n&#093; not defined error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridwidth-returns-coln-not-defined-error#p20174</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setgridwidth-returns-coln-not-defined-error#p20174</guid>
        	        	<description><![CDATA[<p>This bug has been following me since v3.6, still in v3.7.2 and now in v3.8: When using setGridWidth() in my $(document).ready() code, it seems the colModel is not completely initialized yet... somehow....</p>
<p>I get the error that has been reported here several times before, in which cases a fix has been submitted, but I can still reproduce the problem.</p>
<p>The only way I solved this issue is by inserting this code in grid.base.js inside the setGridWidth function, at line 2866:</p>
<p>if (lvc == null)</p>
<p>{</p>
<p><span style="white-space: pre;"> </span>return;</p>
<p>}</p>
</p>
<p>Just before this line of existing code:</p>
<p>$t.p.colModel[lvc].width += cr;</p>
</p>
<p>In other words, it seems it is assumed that &#39;lvc&#39; always gets a value by the code above, but in my case it just doesn&#39;t.</p>
<p>Should this be fixed in a next release, perhaps in a more &#39;proper&#39; way?</p>
]]></description>
        	        	<pubDate>Wed, 06 Oct 2010 16:33:06 +0300</pubDate>
        </item>
</channel>
</rss>