<?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: Grid as a subgrid problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grid-as-a-subgrid-problem</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/grid-as-a-subgrid-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>krisreddy on Grid as a subgrid problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-as-a-subgrid-problem#p8815</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-as-a-subgrid-problem#p8815</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Thanks I will try your solution out.</p>
<p>I am using navGrid (del:true) to delete the row and its deletes the record from the server side&#160;</p>
<p>I guess I can check to see if subgrid is open and remove the row accordingly.</p>
</p>
<p>Thanks,</p>
</p>
<p>Kris</p>
]]></description>
        	        	<pubDate>Wed, 19 Aug 2009 11:50:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Grid as a subgrid problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-as-a-subgrid-problem#p8788</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-as-a-subgrid-problem#p8788</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>How do you delete this? Do you use delGridRow? If this is the case - yes this is expected behavior.</p>
<p>Also you should check if the next row is a subgrid. Below is the code (not tested) which can do this</p>
<p>before deleting row with id=rowid with delGridRow do</p>
<p>var delrow = $("#mygrid").getInd(rowid); // get the index of the row</p>
<p>if(delrow) {</p>
<p>// check to see if the next row has class ui-subgrid</p>
<p>var rtodelete = $("#mygrid")[0].rows[delrow+1];</p>
<p>if( rtodelete.className == "ui-subgrid" )</p>
<p>$(rtodelete).remove()</p>
<p>}</p>
<p>and the delete the parent.</p>
</p>
<p>Little complicated, but will do the job</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 19 Aug 2009 06:17:32 +0300</pubDate>
        </item>
        <item>
        	<title>krisreddy on Grid as a subgrid problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-as-a-subgrid-problem#p8742</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-as-a-subgrid-problem#p8742</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#160; have hierarchical 2-level grid setup using grid as a subgrid. If the subgrid is open and I delete the top level item, the related subgrid are not removed even though my database action has removed it. I don&#39;t know if this is a bug or if I have write to check and see if the subgrid is open then remove it?</p>
</p>
<p>Please let me know,</p>
</p>
<p>Kris</p>
]]></description>
        	        	<pubDate>Tue, 18 Aug 2009 10:45:37 +0300</pubDate>
        </item>
</channel>
</rss>