<?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: idPrefix kills addRow method</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method</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/idprefix-kills-addrow-method/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on idPrefix kills addRow method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method#p26437</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method#p26437</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Found the problem.Fixed in GitHub</p>
<p>Thank you.</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Sat, 21 Apr 2012 11:27:48 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on idPrefix kills addRow method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method#p26435</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method#p26435</guid>
        	        	<description><![CDATA[<p>Hi tony,</p>
<p>nope, I use datatype "json". I made a little test to validate the behaviour:</p>
<p>HTML:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8936' value='Select Code' data-codeid='sfcode8936' /></p>
<div class='sfcode' id='sfcode8936'>&#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='sfselectit8354' value='Select Code' data-codeid='sfcode8354' /></p>
<div class='sfcode' id='sfcode8354'>
<p>&#8230;</p>
<p>$(&#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;idPrefix:&#39;PreA&#39;,<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>
<p>&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#btnAddA&#39;)<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;.button()<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;.click(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#tblGridA&#39;).jqGrid(&#39;addRow&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</p>
<p>&#8230;</p>
</div>
<p>Server sider PHP ("test1.php"):</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4280' value='Select Code' data-codeid='sfcode4280' /></p>
<div class='sfcode' id='sfcode4280'>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>Result after loading:</p>
<p><a href="http://picpaste.de/AfterLoad-gymDob9N.png" target="_blank">[Image Can Not Be Found]</a></p>
<p>Result after click on Button:</p>
<p><a href="http://picpaste.de/AfterClick-Ko3Tq8eM.png" target="_blank">[Image Can Not Be Found]</a></p>
</p>
<p>Regards</p>
<p>snoopy</p>
]]></description>
        	        	<pubDate>Sat, 21 Apr 2012 10:09:19 +0300</pubDate>
        </item>
        <item>
        	<title>tony on idPrefix kills addRow method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method#p26425</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method#p26425</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>A test case is highly apreciated.</p>
<p>I think you use a datatype local.</p>
<p>In this case it is highly recommendet to set a key:true option in the column which act as id.</p>
</p>
<p>Regards</p></p>
]]></description>
        	        	<pubDate>Fri, 20 Apr 2012 18:59:42 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on idPrefix kills addRow method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method#p26424</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method#p26424</guid>
        	        	<description><![CDATA[<p>I forgot: I&#39;m on Version 4.3.2 ...</p>
]]></description>
        	        	<pubDate>Fri, 20 Apr 2012 18:48:55 +0300</pubDate>
        </item>
        <item>
        	<title>snoopy on idPrefix kills addRow method</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method#p26422</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/idprefix-kills-addrow-method#p26422</guid>
        	        	<description><![CDATA[<p>Hi everybody,</p>
<p>I think I found this bug:</p>
<p>when using the jqGrid Option "idPrefix" to make sure there are unique tr - id&#39;s with multiple grids on the page and firing the &#39;addRow&#39; method a new row is inserted in the grid but it doesn&#39;t enter edit mode, no input elements are created.</p>
<p>I assume the &#39;addRow&#39; method uses the row-id "new_row" for selecting the inserted row, but the idPrefix is prefixed at the tr-id, as it should, so it is called &#39;prefixnew_row&#39; and the addRow method doesn&#39;t find the new row for entering edit mode.</p>
<p>Could that be right?</p>
<p>Greetings</p>
<p>Snoopy</p>
]]></description>
        	        	<pubDate>Fri, 20 Apr 2012 18:46:09 +0300</pubDate>
        </item>
</channel>
</rss>