<?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: problem with repeatitems json data</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-repeatitems-json-data</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/problem-with-repeatitems-json-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on problem with repeatitems json data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-repeatitems-json-data#p12516</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-repeatitems-json-data#p12516</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You should set <strong>jsonReader</strong> instead of jsonreader</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 27 Nov 2009 05:15:54 +0200</pubDate>
        </item>
        <item>
        	<title>JÃ¶rg Erdmenger on problem with repeatitems json data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-repeatitems-json-data#p12470</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-repeatitems-json-data#p12470</guid>
        	        	<description><![CDATA[<p>Hi all, I&#39;m having some problems with using objects/map rather than arrays for my cell data. I&#39;ve followed the docs closely but I can&#39;t get it to work. I use jqGrid 3.6.1.</p>
</p>
<p>If I do this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7552' value='Select Code' data-codeid='sfcode7552' /></p>
<div class='sfcode' id='sfcode7552'>
<p>jQuery("#currentCompoundsGrid").jqGrid({</p>
<p><span> </span>datatype: &#39;jsonstring&#39;,</p>
<p>&#160;&#160; &#160;<span> </span>datastr: &#39;{total: "1", page: "1", records: "1", rows: [{id:"1", cell:["Tester", "K47"]}]}&#39;,</p>
<p>&#160;&#160; &#160;<span> </span>jsonreader: {</p>
<p>&#160;&#160; <span> </span>repeatitems: true</p>
<p>&#160;&#160; &#160;<span> </span>},</p>
<p><span> </span>colNames:[&#39;Tester&#39;, &#39;Ki&#39;],</p>
<p><span> </span>colModel:[</p>
<p><span> </span>{name:&#39;Tester&#39;, width:400},</p>
<p><span> </span>{name:&#39;Ki&#39;, width:200}</p>
<p><span> </span>],</p>
<p><span> </span>viewrecords: true,</p>
<p><span> </span>caption:"Aktuelle Compounds"</p>
<p>});&#160;</p>
</div>
<p>all is well, but if I do that:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7822' value='Select Code' data-codeid='sfcode7822' /></p>
<div class='sfcode' id='sfcode7822'>
<p>jQuery("#currentCompoundsGrid").jqGrid({</p>
<p><span> </span>datatype: &#39;jsonstring&#39;,</p>
<p>&#160;&#160; &#160;<span> </span>datastr: &#39;{total: "1", page: "1", records: "1", rows: [{id:"1", Tester:"Tester", Ki:"K47"}]}&#39;,</p>
<p>&#160;&#160; &#160;<span> </span>jsonreader: {</p>
<p>&#160;&#160; &#160;<span> </span>repeatitems: false,</p>
<p>&#160;&#160; &#160; <span> </span>cell: "",</p>
<p>&#160;&#160; &#160; <span> </span>id: "0"</p>
<p>&#160;&#160; &#160;<span> </span>},</p>
<p><span> </span>colNames:[&#39;Tester&#39;, &#39;Ki&#39;],</p>
<p><span> </span>colModel:[</p>
<p><span> </span>{name:&#39;Tester&#39;, width:400},</p>
<p><span> </span>{name:&#39;Ki&#39;, width:200}</p>
<p><span> </span>],</p>
<p><span> </span>viewrecords: true,</p>
<p><span> </span>caption:"Aktuelle Compounds"</p>
<p><span> </span>});</p>
</div>
<p>The Grid keeps saying &#39;Loading&#39; and I get a &#39;cur is undefined&#39; error in my Firefox error console. I have tried leaving the cell and id jsonreader params, setting id to "0", even putting in a &#39;cell&#39; element that contains the map of values - no luck.</p>
</p>
<p>Can anybody shed some light onto this? I&#39;d really appreciate this to work as some of my data rows might end up containing not all data which means the positional array stuff will break eventually.</p></p>
]]></description>
        	        	<pubDate>Thu, 26 Nov 2009 05:37:14 +0200</pubDate>
        </item>
</channel>
</rss>