<?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 &#38; Sub-Grid Issue</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grid-sub-grid-issue</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-sub-grid-issue/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>yashmangupta on Grid &#38; Sub-Grid Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-sub-grid-issue#p26029</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-sub-grid-issue#p26029</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have a main grid say MG with subgrid as SG. The MG loads the data from Table A (refer below) and the SG loads from Table B when the user expands the MG using + icon. The SG works fine but the issue occurs when I expand the MG&#39;s row 1 and select the SG&#39;s Row 2 which inturn selects the MG&#39;s row 2 which should not have happened.</p>
<p>I cannot attach the picture as there is no option available in this editor. I have tried taking code from the example, but the issue still exist. Hope anyone can help me on this.</p>
</p>
<p>The MG&#39;s code returned in XML is:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9288' value='Select Code' data-codeid='sfcode9288' /></p>
<div class='sfcode' id='sfcode9288'>
<p>&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;</p>
<p>&#60;rows&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;page&#62;1&#60;/page&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;total&#62;1&#60;/total&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;records&#62;2&#60;/records&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;row id=&#34;1&#34;&#62;</p>
<p style=&#34;padding-left: 60px; &#34;>&#60;cell&#62;1&#60;/cell&#62;</p>
<p style=&#34;padding-left: 60px; &#34;>&#60;cell&#62;This is a test&#60;/cell&#62;</p>
<p style=&#34;padding-left: 60px; &#34;>&#60;cell&#62;This is a test description&#60;/cell&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;/row&#62;</p>
</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;row id=&#34;2&#34;&#62;</p>
<p style=&#34;padding-left: 60px; &#34;>&#60;cell&#62;2&#60;/cell&#62;</p>
<p style=&#34;padding-left: 60px; &#34;>&#60;cell&#62;This is a test again&#60;/cell&#62;</p>
<p style=&#34;padding-left: 60px; &#34;>&#60;cell&#62;This is a test description again&#60;/cell&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;/row&#62;</p>
<p>&#60;/rows&#62;</p>
</div>
<p>where as for SG&#39;s the XML code returned is when the MG row id 1 is expanded</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3205' value='Select Code' data-codeid='sfcode3205' /></p>
<div class='sfcode' id='sfcode3205'>
<p>&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;</p>
<p>&#60;rows&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;page&#62;1&#60;/page&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;total&#62;1&#60;/total&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;records&#62;2&#60;/records&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;row id=&#34;1&#34;&#62;</p>
<p style=&#34;padding-left: 60px; &#34;>&#60;cell&#62;1&#60;/cell&#62;</p>
<p style=&#34;padding-left: 60px; &#34;>&#60;cell&#62;Testing&#60;/cell&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;/row&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#160;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;row id=&#34;2&#34;&#62;</p>
<p style=&#34;padding-left: 60px; &#34;>&#60;cell&#62;2&#60;/cell&#62;</p>
<p style=&#34;padding-left: 60px; &#34;>&#60;cell&#62;Training&#60;/cell&#62;</p>
<p style=&#34;padding-left: 30px; &#34;>&#60;/row&#62;</p>
<p>&#60;/rows&#62;</p>
</div>
<p><input type='button' class='sfcodeselect' name='sfselectit3728' value='Select Code' data-codeid='sfcode3728' /></p>
<div class='sfcode' id='sfcode3728'>
<p><strong></strong><strong><span style=&#34;text-decoration: underline;&#34;><span style=&#34;color: #ff0000;&#34;><br />Table A</span></span></strong></p>
<p><strong></strong></p>
<p>PK_ColID = 1</p>
<p>tTitle = &#34;This is a test&#34;</p>
<p>tDesc = &#34;This is a test description&#34;</p>
</p>
<p>PK_ColID = 2</p>
<p>tTitle = &#34;This is a test again&#34;</p>
<p>tDesc = &#34;This is a test description again&#34;</p>
</p>
<p><strong><span style=&#34;text-decoration: underline;&#34;><span style=&#34;color: #ff0000;&#34;>Table B</span></span></strong></p>
<p>RecordID = 1</p>
<p>FK_ColID = 1</p>
<p>tMode = &#34;Testing&#34;</p>
</p>
<p>RecordID&#160;= 2</p>
<p>FK_ColID = 1</p>
<p>tMode = &#34;Training&#34;</p>
</p>
</div>
]]></description>
        	        	<pubDate>Tue, 28 Feb 2012 15:04:36 +0200</pubDate>
        </item>
</channel>
</rss>