<?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: Wrong variable was used inside setGridWidth method</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-variable-was-used-inside-setgridwidth-method</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/wrong-variable-was-used-inside-setgridwidth-method/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Wrong variable was used inside setGridWidth method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-variable-was-used-inside-setgridwidth-method#p10457</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/wrong-variable-was-used-inside-setgridwidth-method#p10457</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. Already fixed.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 06 Oct 2009 07:44:54 +0300</pubDate>
        </item>
        <item>
        	<title>rimma on Wrong variable was used inside setGridWidth method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/wrong-variable-was-used-inside-setgridwidth-method#p10409</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/wrong-variable-was-used-inside-setgridwidth-method#p10409</guid>
        	        	<description><![CDATA[<p>It seems there was used wrong variable  inside setGridWidth method which cause an exception in IE8:</p>
<p><span style="color: #ff0000;">Line: 10<br />Error: &#39;grid.cols[...].style&#39; is null or not an object</span></p>
</p>
<p>Fragment of code for grid.base.js is:</p>
<p>setGridWidth : function(nwidth, shrink) {</p>
<p>...</p>
<p>var cle = $t.grid.cols.length &#62;0;<br />$.each($t.p.colModel, function(i) {</p>
<p>...</p>
<p>$t.p.colModel[lvc].width += cr;<br />cw= $t.p.colModel[lvc].width;<br />$t.grid.headers[lvc].width = cw;<br />$t.grid.headers[lvc].el.style.width=cw+"px";</p>
<p><span style="color: #ff0000;">if(</span><span style="color: #ff0000;">cl&#62;0) $t.grid.cols[lvc].style.width = cw+"px"; </span></p>
<p>//instead shoud be used <span style="color: #339966;">if(cle) $t.grid.cols[lvc].style.width = cw+"px";</span></p>
<p>...</p>
<p>}</p>
<p>...</p>
<p>}</p>
]]></description>
        	        	<pubDate>Mon, 05 Oct 2009 07:28:06 +0300</pubDate>
        </item>
</channel>
</rss>