<?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: addRowData Problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/addrowdata-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/addrowdata-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>notxas on addRowData Problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/addrowdata-problem#p29439</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/addrowdata-problem#p29439</guid>
        	        	<description><![CDATA[<p>Can someone please tell what stupid mistake I am doing when I try to add a row before the 4th row.&#160; It is constantly adding it to the end of the grid.</p>
<p>Yet the editRow call goes to the 4th row as it should after the row is added.</p>
</p>
<p>var emptyItem=[{"rowid":"tableIdField", "act": "", "action":"1", "nfirsCode":"2", "description":"3", "agencyId":"4", "tableName":"5", "tableIdName":"6", "tableIdField":"7" ,"timestamp":"8"}];</p>
<p>var thisRowId = $.jgrid.randId();</p>
<p>$("#" + childGrid + "").addRowData(thisRowId, emptyItem, "before", "4");<br />$("#" + childGrid + "").jqGrid(&#39;editRow&#39;,4,true);</p>
<p>And I have looked at the documentation until I was glossy eyed and still can&#39;t figure it out.</p>
<p>Oh and by the way the reason behind this portion of the code.... $("#" + childGrid + ""). is that I dynamically create the grids based on an action from another grid on the same page.</p>
</p>
<p>Thanks in advance,</p>
<p>Steve</p></p>
]]></description>
        	        	<pubDate>Wed, 04 Sep 2013 22:04:59 +0300</pubDate>
        </item>
</channel>
</rss>