<?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: eval()`ed subgrid fails</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/evaled-subgrid-fails</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/help/evaled-subgrid-fails/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sledge on eval()`ed subgrid fails</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/evaled-subgrid-fails#p2222</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/evaled-subgrid-fails#p2222</guid>
        	        	<description><![CDATA[<p>Thank you. With clear head today I have solved the problem: it was an erroneous backreference to the ever generated subgrid id.</p>
<p>case closed, pardon for that</p>
<p>-- <br />sledge</p>
]]></description>
        	        	<pubDate>Wed, 24 Sep 2008 11:14:56 +0300</pubDate>
        </item>
        <item>
        	<title>tony on eval()`ed subgrid fails</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/evaled-subgrid-fails#p2215</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/evaled-subgrid-fails#p2215</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The simple test is:</p>
<p>Do not use jqGrid. Simulate ajax request for the problem data and see</p>
<p>what it is. If all is ok - look in the jsonReader and look if</p>
<p>you return the correct data.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 24 Sep 2008 04:57:23 +0300</pubDate>
        </item>
        <item>
        	<title>sledge on eval()`ed subgrid fails</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/evaled-subgrid-fails#p2200</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/evaled-subgrid-fails#p2200</guid>
        	        	<description><![CDATA[<p>To add more information in the matter, which is a major blocker for me..:</p>
<p>I have tried even swapping grid with its subgrid &#8211; same results (Loading forever).</p>
<p>It would appear that it breaks on the bigger JSON data being somehow invalid. But it consists only from 10 elementary not-corrupted strings (for 10 columns) -- that&#39;s for the subgrid. (remember -- the same code generates the json from the DB query). Main grid contains 3 columns only.</p>
<p>If I replace subgrid with hardcoded xmlstring, everything shows ok. jsonstring meanwhile cannot be shown.</p>
<p>Is there a problem with many-columned json strings?</p>
<p>Probably -- no, because the biggest mistery in this was that JSON data with 10 values was displayed OK, when the subgrid was still hardcoded in the .html file. Once I have refactoried it to be eval()`ed, it stopped showing data.</p>
<p>Well, I hope I&#39;ll break through this one..</p>
<p>Standing by, pals,</p>
<p>-- <br />sledge</p>
]]></description>
        	        	<pubDate>Tue, 23 Sep 2008 15:36:04 +0300</pubDate>
        </item>
        <item>
        	<title>sledge on eval()`ed subgrid fails</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/evaled-subgrid-fails#p2189</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/evaled-subgrid-fails#p2189</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I am creating grid and its subgrid dynamically, by posting ajax request and doing eval(response); (i do this because a schema of a subgrid depends on which row i have clicked).</p>
<p>With main grid everything works fine. After I expand row, subgrid gets created OK (eval from JSP generated action), too, but writes out Loading and stays like that.</p>
<p>It should add a row of data, which does get fetched (firebug reports correct response of the json row I need to see in a subgrid).</p>
<p>However, firebug shows an error:</p>
<p><span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"></span></p>
<div class="errorTitle">ts.rows is undefined</div>
<div class="errorTrace">
<div class="objectBox objectBox-stackFrame"><a class="objectLink" target="_blank">addJSONData</a>()<span class="objectLink-sourceLink objectLink">grid.base-min.js (line 87)</span></div>
<div class="objectBox objectBox-stackFrame"><a class="objectLink" target="_blank">complete</a>()<span class="objectLink-sourceLink objectLink">grid.base-min.js (line 99)</span></div>
<div class="objectBox objectBox-stackFrame"><a class="objectLink" target="_blank">complete</a>()<span class="objectLink-sourceLink objectLink">jquery.js (line 11)</span></div>
<div class="objectBox objectBox-stackFrame"><a class="objectLink" target="_blank">e</a>()<span class="objectLink-sourceLink objectLink">jquery.js (line 11)</span></div>
</div>
<div class="errorSourceBox errorSource-exec">[Image Can Not Be Found]<span class="errorSource">$(ts.rows[i]).after(row);if(afterInsRow){ts.p.afterInsertRow(row.id,rd);}</span></div>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec">I have viewed all code which is being eval()`ed -- it is ok (i.e., it is the same action in JSF that is rsponsible to create grid and its subgrids, it manages changing of the grid_id via parameters, so I have checked -- all jQuery(&#39;#&#60;grid_or_subgrid_id&#62;&#39;). .. references are OK.</div>
<div class="errorSourceBox errorSource-exec">I do not know where to look for more...</div>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec">Please help, thanks huge,</div>
<div class="errorSourceBox errorSource-exec">--</div>
<div class="errorSourceBox errorSource-exec">sledge</div></p>
]]></description>
        	        	<pubDate>Tue, 23 Sep 2008 10:11:11 +0300</pubDate>
        </item>
</channel>
</rss>