<?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: $t.p is undefined</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/tp-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/tp-is-undefined/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on $t.p is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/tp-is-undefined#p13311</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/tp-is-undefined#p13311</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Maybe you can define ajaxStart event in ajaxGridOptions and then you will know that there is ajax available</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 26 Dec 2009 11:21:26 +0200</pubDate>
        </item>
        <item>
        	<title>Klaus on $t.p is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/tp-is-undefined#p13272</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/tp-is-undefined#p13272</guid>
        	        	<description><![CDATA[<p>Thank you.</p>
<p>That seems to fix some problems.</p>
</p>
<p>Another problem that sometimes occurs in my web app is the following ...<br />... when a grid instance is already destroyed (because of a view change) at the time when an outstanding ajax-call (loading new data) completes (loading the received data into the grid) this throws an error because it can&#39;t fill the grid which was already destroyed.</p>
<p>I know I should prevent such situations (to destroy the grid befor all open tasks and ajax-calls are finished) but how do I know if any asyc action is still in progress?</p>
<p>The bad thing with JavaScript errors is, that the whole webapp crashes.</p>
</p>
<p>Nevertheless I like your grid control plugin. Cool and highly customizable solution. <img class="spSmiley" style="margin:0" title="Cool" src="/blog/wp-content/forum-smileys/sf-cool.gif" alt="Cool" /></p>
</p>
<p>Kind regards,<br />Klaus.</p>
]]></description>
        	        	<pubDate>Wed, 23 Dec 2009 09:56:11 +0200</pubDate>
        </item>
        <item>
        	<title>tony on $t.p is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/tp-is-undefined#p13236</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/tp-is-undefined#p13236</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>In some situations I have the same problem - my solution is to use setGridWidth within setTimeout.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 22 Dec 2009 09:10:38 +0200</pubDate>
        </item>
        <item>
        	<title>Klaus on $t.p is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/tp-is-undefined#p13208</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/tp-is-undefined#p13208</guid>
        	        	<description><![CDATA[<div class="sourceRow">I&#39;m often getting the JavaScript error message &#8220;$t.p is undefined&#8221; located in the setGridWidth method.</div>
<div class="sourceRow"></div>
<div class="sourceRow">&#8230;</div>
<div class="sourceRow"><span class="sourceRowText">setGridWidth : function(nwidth, shrink) { </span></div>
<div class="sourceRow"><a class="sourceLine" target="_blank"></a><span class="sourceRowText">&#160;&#160;&#160; return this.each(function(){ </span></div>
<div class="sourceRow"><span class="sourceRowText">&#160;&#160;&#160;&#160;&#160; var $t = this, cw,</span><span class="sourceRowText"> initwidth = 0, brd=$t.p.cellLayout, lvc, vc=0, hs=false, scw=$t.p.scrollOffset, aw, gw=0, tw=0, cl = 0, cr;</span></div>
<div class="sourceRow"><span class="sourceRowText">&#160;&#160;&#160;&#160;&#160;&#160; &#8230;</span></div>
<div class="sourceRow"></div>
<div class="sourceRow">I think the setGridWidth is called in a very early or late lifetime phase of the grid object when triggered via resize-events. Maybe not all data is loaded at this time or already destroyed. (maybe setGridHeight has the same issue)</div>
<div class="sourceRow"></div>
<div class="sourceRow">Is it possible to catch those problems or to check if the main grid components are available before accessing them?</div>
<div class="sourceRow"></div>
<div class="sourceRow">It doesn&#39;t seem to be a big problem, but the debugger always stops with this annoying error.</div>
<div class="sourceRow">(working with jqGrid Version 3.6.2)</div>
]]></description>
        	        	<pubDate>Mon, 21 Dec 2009 14:06:01 +0200</pubDate>
        </item>
</channel>
</rss>