<?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: editRow method in SubGrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/editrow-method-in-subgrid</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/editrow-method-in-subgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>joshbodine on editRow method in SubGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editrow-method-in-subgrid#p26673</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editrow-method-in-subgrid#p26673</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>I can&#39;t get the link you posted to work; can you please post the full link. I am having the same issue as the OP and was hoping for a resolution. When I have a grid as a subgrid, and in the subgrid I use "ondblClickRow" or "onRightClickRow", it kicks off that event for both the subgrid and the parent grid row.</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Fri, 25 May 2012 18:53:42 +0300</pubDate>
        </item>
        <item>
        	<title>tony on editRow method in SubGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editrow-method-in-subgrid#p26438</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editrow-method-in-subgrid#p26438</guid>
        	        	<description><![CDATA[<p>See here:</p>
<p><a href="http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method/#p26437" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....od/#p26437</a></p>
]]></description>
        	        	<pubDate>Sat, 21 Apr 2012 11:30:10 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on editRow method in SubGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editrow-method-in-subgrid#p26436</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editrow-method-in-subgrid#p26436</guid>
        	        	<description><![CDATA[<p>Hi everybody,</p>
</p>
<p>I found another Bug (or is it a feature?! 😉 ):</p>
<p>Having a SubGrid in a Grid both with identical id&#39;s in rows, using "editRow" methoed ends up with edit mode of both rows in Grid AND SubGrid which have the same ID.</p>
<p>Here a little test:</p>
<p>HTML</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3677' value='Select Code' data-codeid='sfcode3677' /></p>
<div class='sfcode' id='sfcode3677'>&#160;&#160;&#160; &#60;table id=&#34;tblGridA&#34;&#62;&#60;/table&#62;<br />&#160;&#160; &#160;&#60;button type=&#34;button&#34; id=&#34;btnAddA&#34;&#62;+&#60;/button&#62;</div>
</p>
<p>JavaScript:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9147' value='Select Code' data-codeid='sfcode9147' /></p>
<div class='sfcode' id='sfcode9147'>
<p>&#160;&#160; &#160;&#160;&#160;&#160; $(&#39;#tblGridA&#39;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype:&#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;test1.php&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; subGrid:true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;width:500,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height:300,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;ondblClickRow:function(rowid) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#tblGridA&#39;).jqGrid(&#39;editRow&#39;,rowid,{keys:true});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;subGridRowExpanded:function(sg_id,row_id) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sg_table_id=&#39;tblSubGrid_&#39;+sg_id;</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $(&#39;#&#39;+sg_id).html(&#39;&#60;table id=&#34;&#39;+sg_table_id+&#39;&#34;&#62;&#60;/table&#62;&#39;);</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $(&#39;#&#39;+sg_table_id).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype:&#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;test1.php&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; ondblClickRow:function(rowid) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#&#39;+sg_table_id).jqGrid(&#39;editRow&#39;,rowid,{keys:true});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;Col1&#39;,&#39;Col2&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name:&#39;col1&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; editable:true<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name:&#39;col2&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editable:true<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;]<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;Col1&#39;,&#39;Col2&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name:&#39;col1&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; editable:true<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name:&#39;col2&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editable:true<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;]<br />&#160;&#160; &#160;&#160;&#160; &#160;});</p>
</div>
<p>Server side PHP ("test1.php"):</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2679' value='Select Code' data-codeid='sfcode2679' /></p>
<div class='sfcode' id='sfcode2679'>for($i=0;$i&#60;10;$i++) {<br />&#160;&#160; &#160;$return[&#39;rows&#39;][$i][&#39;id&#39;]=$i;<br />&#160;&#160; &#160;$return[&#39;rows&#39;][$i][&#39;cell&#39;]=array(&#39;A&#39;.$i,&#39;B&#39;.$i);<br />}<br />echo json_encode($return);</div>
</p>
<p>Grid with expanded SubGrid:</p>
<p><a href="http://picpaste.de/ExpSubGrid-vN6vdTPH.png" target="_blank">[Image Can Not Be Found]</a></p>
<p>Grid after click on first row in SUB-Grid:</p>
<p><a href="http://picpaste.de/SubGridEditRow-gu0mcC3Y.png" target="_blank">[Image Can Not Be Found]</a></p>
</p>
<p>A workaround could be using the grid&#39;s idPrefix - option, but this leads to the non working "addRow" - method, filed in this Bug:</p>
<p><a title="AddRow Bug" href="/blog/?page_id=393/bugs/idprefix-kills-addrow-method/" target="_blank">addRow - Bug</a></p>
</p>
<p>Regards</p>
<p>snoopy</p>
]]></description>
        	        	<pubDate>Sat, 21 Apr 2012 11:06:26 +0300</pubDate>
        </item>
</channel>
</rss>