<?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: Array data aren't added to the grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/array-data-arent-added-to-the-grid</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/array-data-arent-added-to-the-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Takhir on Array data aren't added to the grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/array-data-arent-added-to-the-grid#p26661</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/array-data-arent-added-to-the-grid#p26661</guid>
        	        	<description><![CDATA[<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">The following example from this website to populate grdi with Array data doesn&#39;t work and generates "this.p.rownumbers is null..." at the line of adding a row data. Can anyone help please?</span></span></span></p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"></span></span></p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">&#60;</span></span></span><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">table</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;"><span style="font-family: Consolas; color: #ff0000; font-size: x-small;">id</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">="list4"&#62;&#60;/</span></span></span><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">table</span></span></span><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">&#62;</span></span></span></p>
</p>
<p>jQuery(</p>
<p>datatype:</p>
<p>height: 250,</p>
<p>rowNum: 100,</p>
<p>colNames: [</p>
<p>colModel: [</p>
<p>{ name:</p>
<p>{ name:</p>
<p>{ name:</p>
<p>{ name:</p>
<p>{ name:</p>
<p>{ name:</p>
<p>{ name:</p>
<p>],</p>
<p>multiselect:</p>
<p>caption:</p>
<p>"#list4").jqGrid({"local",&#39;Inv No&#39;, &#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;, &#39;Tax&#39;, &#39;Total&#39;, &#39;Notes&#39;],&#39;id&#39;, index: &#39;id&#39;, width: 60, sorttype: "int" },&#39;invdate&#39;, index: &#39;invdate&#39;, width: 90, sorttype: "date" },&#39;name&#39;, index: &#39;name&#39;, width: 100 },&#39;amount&#39;, index: &#39;amount&#39;, width: 80, align: "right", sorttype: "float" },&#39;tax&#39;, index: &#39;tax&#39;, width: 80, align: "right", sorttype: "float" },&#39;total&#39;, index: &#39;total&#39;, width: 80, align: "right", sorttype: "float" },&#39;note&#39;, index: &#39;note&#39;, width: 150, sortable: false }true,"Manipulating Array Data"</p>
<p>});</p>
<p>var</p>
<p>{ id:</p>
<p>{ id:</p>
<p>{ id:</p>
<p>{ id:</p>
<p>{ id:</p>
<p>{ id:</p>
<p>{ id:</p>
<p>{ id:</p>
<p>{ id:</p>
<p>];</p>
<p>alert(mydata[i].name);</p>
<p>jQuery(</p>
<p>}</p>
<p>}</p>
<p>mydata = ["1", invdate: "2007-10-01", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00" },"2", invdate: "2007-10-02", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00" },"3", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00" },"4", invdate: "2007-10-04", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00" },"5", invdate: "2007-10-05", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00" },"6", invdate: "2007-09-06", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00" },"7", invdate: "2007-10-04", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00" },"8", invdate: "2007-10-03", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00" },"9", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00" }</p>
</p>
<p>function test() {for (var i = 0; i &#60;= mydata.length; i++) {"#list4").jqGrid(&#39;addRowData&#39;, i + 1, mydata[i]);</p>
]]></description>
        	        	<pubDate>Thu, 24 May 2012 15:13:28 +0300</pubDate>
        </item>
</channel>
</rss>