<?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: Simple table - addRowData error</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/simple-table-addrowdata-error</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/simple-table-addrowdata-error/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Simple table - addRowData error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/simple-table-addrowdata-error#p30068</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/simple-table-addrowdata-error#p30068</guid>
        	        	<description><![CDATA[</p>
<p>Hello,</p>
</p>
<p>Please, try with a simple javascript ignoring php like this</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3965' value='Select Code' data-codeid='sfcode3965' /></p>
<div class='sfcode' id='sfcode3965'>
<p>&#60;table id=&#39;list&#39;&#62;&#60;/table&#62;&#160;</p>
<p>&#60;script type="text/javascript"&#62;</p>
</p>
<p>$(function(){</p>
<p>$(&#39;#list&#39;).jqGrid({</p>
<p>datatype: &#39;local&#39;,</p>
<p>height: 250,</p>
<p>colNames: [&#39;AsOfDate&#39;, &#39;Part&#39;, &#39;Pack&#39;],</p>
<p>colModel: [{name:&#39;date&#39;,index:&#39;date&#39;, width:55},</p>
<p>{name:&#39;part&#39;,index:&#39;part&#39;, width:90},</p>
<p>{name:&#39;pack&#39;,index:&#39;pack&#39;, width:100}],</p>
<p>multiselect: true,</p>
<p>caption: &#39;Testing&#39;</p>
<p>});</p>
<p>});&#160;</p>
</p>
<p>test[0]= {....};</p>
<p>test[1] = {....};</p>
<p>...</p>
<p>test[n] = {...};</p>
</p>
<p>for(var i=0;i&#60;=test.length;i++)</p>
<p>$("#list").jqGrid(&#39;addRowData&#39;,i+1,test[i]);</p>
<p>&#60;/script&#62;</p>
</div>
<p>If this work, then maybe the problem is in your php code.</p>
</p>
<p>Regards</p></p>
]]></description>
        	        	<pubDate>Thu, 09 Jan 2014 19:41:59 +0200</pubDate>
        </item>
        <item>
        	<title>tullyelly on Simple table - addRowData error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/simple-table-addrowdata-error#p30061</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/simple-table-addrowdata-error#p30061</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I&#39;m trying to work my way through jqGrid with little success so far. I&#39;m trying to create a simple table to test out the functionality.&#160;</p>
</p>
<p>Using the code below, I receive back an error "Uncaught TypeError: Cannot read property &#39;rownumbers&#39; of undefined". &#160;The array is php array is functioning as expected, as well as the javascript.&#160;</p>
</p>
<p>$("#list").jqGrid(&#39;addRowData&#39;,i+1,test[i]); is the line that is my issue.&#160;</p>
</p>
<p>Could anyone help fly me in the right direction?</p>
</p>
<p>&#60;table id=&#39;list&#39;&#62;&#60;/table&#62;&#160;</p>
<p>&#60;script type="text/javascript"&#62;</p>
</p>
<p>$(function(){</p>
<p>$(&#39;#list&#39;).jqGrid({</p>
<p>datatype: &#39;local&#39;,</p>
<p>height: 250,</p>
<p>colNames: [&#39;AsOfDate&#39;, &#39;Part&#39;, &#39;Pack&#39;],</p>
<p>colModel: [{name:&#39;date&#39;,index:&#39;date&#39;, width:55},</p>
<p>{name:&#39;part&#39;,index:&#39;part&#39;, width:90},</p>
<p>{name:&#39;pack&#39;,index:&#39;pack&#39;, width:100}],</p>
<p>multiselect: true,</p>
<p>caption: &#39;Testing&#39;</p>
<p>});</p>
<p>});&#160;</p>
</p>
<p>&#60;?php</p>
<p>$test = json_encode($arr);</p>
<p>echo "var test = ". $test . ";\n";</p>
<p>?&#62;</p>
</p>
<p>for(var i=0;i&#60;=test.length;i++)</p>
<p>$("#list").jqGrid(&#39;addRowData&#39;,i+1,test[i]);</p>
<p>&#60;/script&#62;</p>
]]></description>
        	        	<pubDate>Wed, 08 Jan 2014 00:21:40 +0200</pubDate>
        </item>
</channel>
</rss>