<?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: Table as cell content causes exception while calling getRowData</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/table-as-cell-content-causes-exception-while-calling-getrowdata</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/table-as-cell-content-causes-exception-while-calling-getrowdata/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>oz0ne on Table as cell content causes exception while calling getRowData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/table-as-cell-content-causes-exception-while-calling-getrowdata#p22824</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/table-as-cell-content-causes-exception-while-calling-getrowdata#p22824</guid>
        	        	<description><![CDATA[<p>After debugging the code I found this:</p>
<div class="sourceRow">&#160;&#160; if( $(ind).hasClass(&#39;jqgrow&#39;) ) {</div>
<div id="sb20-L2556" class="sourceRow">&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;td&#39;,ind).each( function(i) {</div>
<div id="sb20-L2557" class="sourceRow ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; nm = $t.p.colModel[i].name; <em>// here is exception</em></div>
<div class="sourceRow ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8230;</div>
<div class="sourceRow ">I think the jQuery selector $(&#39;td&#39;,ind) gets <strong>all</strong> &#39;td&#39; items in table row, but it must get only it&#39;s direct children</div>
</p>
<div class="sourceRow ">Here is my solving (it works):</div>
<div class="sourceRow ">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(ind).children(&#39;td&#39;).each( function(i) {</div>
</p>
<div class="sourceRow ">IMHO you should change all using of construction like this: <strong>$(&#39;td&#39;,ind)</strong> to this one: <strong>$(ind).children(&#39;td&#39;)</strong> to avoid similar bugs</div>
]]></description>
        	        	<pubDate>Mon, 18 Apr 2011 10:37:44 +0300</pubDate>
        </item>
</channel>
</rss>