<?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 using array of data at position</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-using-array-of-data-at-position</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/addrowdata-using-array-of-data-at-position/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>christine_draper on addRowData using array of data at position</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-using-array-of-data-at-position#p29271</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-using-array-of-data-at-position#p29271</guid>
        	        	<description><![CDATA[<p>Not sure if this is a bug or a feature request...</p>
<p>I&#39;m able to use addRowData add a single object at a position. However, when I try to add an array of objects, they are always appended, regardless of the position parameter. &#160;</p>
</p>
<p>E.g. Given:&#160;</p>
<pre>        var mydata = [ {  "item":1,"title":"A title", "amount":"1240", "mydate":"02.21.13", "mydate2":"02.21.13"},
   	               {  "item":2,"title":"A second title", "amount":"100.02", "mydate":"01.21.13", "mydate2":"01.21.13" } ];
  	var mydata3 = {  "item":3,"title":"A third title", "amount":"1240", "mydate":"02.21.13", "mydate2":"02.21.13"} ;
  	var mydata4 = {  "item":4,"title":"A fourth title", "amount":"100.02", "mydate":"01.21.13", "mydate2":"01.21.13" } ;
  	var myMoreData = [ {  "item":5,"title":"A fifth title", "amount":"13000", "mydate":"05.23.13", "mydate2":"05.23.13"},
   	               {  "item":6,"title":"A sixth title", "amount":"120.002", "mydate":"01.21.13", "mydate2":"01.21.13" } ]; </pre>
</p>
<p>Then:</p>
<pre>	grid.addRowData("item", mydata);
	// Can add individual rows in specific positions
	grid.addRowData(3, mydata3, "first");
	grid.addRowData(4, mydata4, "before", "2");
	// can only append multiple rows
	grid.addRowData("item", myMoreData, "first");
</pre>
]]></description>
        	        	<pubDate>Sun, 04 Aug 2013 02:31:42 +0300</pubDate>
        </item>
</channel>
</rss>