<?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: h.p.colModel&#091;l&#093; is undefined</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/h-p-colmodell-is-undefined</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/h-p-colmodell-is-undefined/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>halicem on h.p.colModel&#091;l&#093; is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/h-p-colmodell-is-undefined#p23104</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/h-p-colmodell-is-undefined#p23104</guid>
        	        	<description><![CDATA[<p>When jqGrid is set to shrinkToFit: true, using setGridWidth would sometimes(not always)&#160;result in h.p.colModel[l] is undefined. This is on a multi-jqgrid environment(multiple instances of jqgrid on a page). I&#39;m not sure if that is also the case in single instances.</p>
</p>
<p>To get around this, a simple instantiation seems to have done the fix.</p>
</p>
<p>on line 2889-src, change:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1273' value='Select Code' data-codeid='sfcode1273' /></p>
<div class='sfcode' id='sfcode1273'>&#160;&#160;&#160;initwidth = 0, brd=$.browser.webkit&#124;&#124;$.browser.safari? 0: $t.p.cellLayout, lvc, vc=0, hs=false, scw=$t.p.scrollOffset, aw, gw=0,</div>
<p>to:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1793' value='Select Code' data-codeid='sfcode1793' /></p>
<div class='sfcode' id='sfcode1793'>
<p>&#160;&#160;&#160;initwidth = 0, brd=$.browser.webkit&#124;&#124;$.browser.safari? 0: $t.p.cellLayout, lvc<strong><span style=&#34;color: #000000;&#34;>=0</span></strong>, vc=0, hs=false, scw=$t.p.scrollOffset, aw, gw=0,</p>
</div>
<p>or on line 146-min, change:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9603' value='Select Code' data-codeid='sfcode9603' /></p>
<div class='sfcode' id='sfcode9603'>
<p>if(k.p.remapColumns)if(k.p.remapColumns.length)c(k.p.remapColumns);else k.p.remapColumns=b.makeArray(f);k.p.lastsort=b.inArray(k.p.lastsort,f);if(k.p.treeGrid)k.p.expColInd=b.inArray(k.p.expColInd,f)},setGridWidth:function(f,j){return this.each(function(){if(this.grid){var h=this,c,g=0,k=b.browser.webkit&#124;&#124;b.browser.safari?0:h.p.cellLayout,l,a=0,r=false,v=h.p.scrollOffset,z,E=0,P=0,K;if(typeof j!=&#34;boolean&#34;)j=h.p.shrinkToFit;if(!isNaN(f)){f=parseInt(f,10);h.grid.width=h.p.width=f;b(&#34;#gbox_&#34;+b.jgrid.jqID(h.p.id)).css(&#34;width&#34;,</p>
</div>
<p>to:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6011' value='Select Code' data-codeid='sfcode6011' /></p>
<div class='sfcode' id='sfcode6011'>
<p>if(k.p.remapColumns)if(k.p.remapColumns.length)c(k.p.remapColumns);else k.p.remapColumns=b.makeArray(f);k.p.lastsort=b.inArray(k.p.lastsort,f);if(k.p.treeGrid)k.p.expColInd=b.inArray(k.p.expColInd,f)},setGridWidth:function(f,j){return this.each(function(){if(this.grid){var h=this,c,g=0,k=b.browser.webkit&#124;&#124;b.browser.safari?0:h.p.cellLayout,l<strong><span style=&#34;color: #000000;&#34;>=0</span></strong>,a=0,r=false,v=h.p.scrollOffset,z,E=0,P=0,K;if(typeof j!=&#34;boolean&#34;)j=h.p.shrinkToFit;if(!isNaN(f)){f=parseInt(f,10);h.grid.width=h.p.width=f;b(&#34;#gbox_&#34;+b.jgrid.jqID(h.p.id)).css(&#34;width&#34;,</p>
</div>
<p>or append after charAt(343):</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5826' value='Select Code' data-codeid='sfcode5826' /></p>
<div class='sfcode' id='sfcode5826'>
<p>=0</p>
</div>
<p>
I don&#39;t think it will cause any issues since it&#39;s not getting caught as undefined, or used as false,&#160;anywhere else anyway.</p>
]]></description>
        	        	<pubDate>Tue, 10 May 2011 23:57:00 +0300</pubDate>
        </item>
</channel>
</rss>