<?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: jqgrid json help (jsonreader configuration problem)</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-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/jqgrid-json-help-jsonreader-configuration-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>amarjeet27 on jqgrid json help (jsonreader configuration problem)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p23889</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p23889</guid>
        	        	<description><![CDATA[<p>I am also unable to get column sorting to work. Any suggestions?</p>
]]></description>
        	        	<pubDate>Wed, 06 Jul 2011 02:59:56 +0300</pubDate>
        </item>
        <item>
        	<title>mikeerickson on jqgrid json help (jsonreader configuration problem)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18493</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18493</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>Here is your config with the response:</p>
<p><a rel="nofollow" href="http://trirand.com/blog/jqgrid/demo3.html" target="_blank"></a><a href="http://trirand.com/blog/jqgrid" rel="nofollow" target="_blank">http://trirand.com/blog/jqgrid</a>.....demo3.html</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
<p>Well, after all this, I found the problem. &#160; In my page, my list object was defined as:</p>
</p>
<p>&#60;div id="statesGrid"&#62;&#60;/div&#62;</p>
<p>changed to</p>
<p>&#60;table id="statesGrid"&#62;&#60;/table&#62;</p>
</p>
<p>And guess what, it worked! &#160;</p>
</p>
<p>What does it take to get the column sorting work?</p>
]]></description>
        	        	<pubDate>Thu, 08 Jul 2010 22:54:40 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jqgrid json help (jsonreader configuration problem)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18491</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18491</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Here is your config with the response:</p>
<p><a href="http://trirand.com/blog/jqgrid/demo3.html" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....demo3.html</a></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 08 Jul 2010 22:43:22 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jqgrid json help (jsonreader configuration problem)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18490</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18490</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The question is &#8211; which version of jqGrid is used?</p>
<p>How look your head section where the jqgrid files are loaded?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 08 Jul 2010 22:27:20 +0300</pubDate>
        </item>
        <item>
        	<title>mikeerickson on jqgrid json help (jsonreader configuration problem)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18489</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18489</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>Just tested your configuration with the data provided from the link.</p>
<p>It works perfectly except that:</p>
<p>1. You have errror into the code:</p>
<p>...jqGrid({<br />..<br />jsonReader: {<br />root: "states.state",<br />repeatitems: false<br /><strong>}, &#60;==========Error </strong><br />});</p>
<p>2. You should provide a info for the page, but instead it work without this setting.<br />If you need online example with your settings I&#39;m ready to prepare for you.</p>
<p>Kind Regards<br />Tony</p>
</blockquote>
<hr />
<p>Tony</p>
</p>
<p>One more thing, I always seem to get the same error in Firebug no matter what I do (this is in <a href="http://localhost:8888/jqGridPHP/js/jquery.jqGrid.min.js" rel="nofollow" target="_blank"><a href="http://localhost:8888/jqGridPH" rel="nofollow">http://localhost:8888/jqGridPH</a>.....rid.min.js</a>)</p>
<div class="errorTitle focusRow subLogRow ">a.rows  is undefined</div>
<div class="errorSourceBox  errorSource-show focusRow subLogRow ">[Image Can Not Be Found]<a class="errorSource a11yFocus " target="_blank">"_id_"}var  x=a.p.reccount=0,u,D,F,B=[]....p.remapColumns.length)Y=b.inArray(Y,&#160;</a></div></p>
]]></description>
        	        	<pubDate>Thu, 08 Jul 2010 20:42:41 +0300</pubDate>
        </item>
        <item>
        	<title>mikeerickson on jqgrid json help (jsonreader configuration problem)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18488</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18488</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>Just tested your configuration with the data provided from the link.</p>
<p>It works perfectly except that:</p>
<p>1. You have errror into the code:</p>
<p>...jqGrid({<br />..<br />jsonReader: {<br />root: "states.state",<br />repeatitems: false<br /><strong>}, &#60;==========Error </strong><br />});</p>
<p>2. You should provide a info for the page, but instead it work without this setting.<br />If you need online example with your settings I&#39;m ready to prepare for you.</p>
<p>Kind Regards<br />Tony</p>
</blockquote>
<hr />
<p>Thanks for the reply, but I still dont have it working. &#160; I have made the adjustment you have defined above, still nothing. &#160;I have even simplified the JSON source to be more "standard" and edited my javascript file and still doesnt work. &#160;I can send you both my source file and the modified .json file if you would like?&#160;</p>
]]></description>
        	        	<pubDate>Thu, 08 Jul 2010 20:30:37 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jqgrid json help (jsonreader configuration problem)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18487</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18487</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Just tested your configuration with the data provided from the link.</p>
<p>It works perfectly except that:</p>
<p>1. You have errror into the code:</p>
<p>...jqGrid({<br />..<br />jsonReader: {<br />root: "states.state",<br />repeatitems: false<br /><strong>}, &#60;==========Error </strong><br />});</p>
<p>2. You should provide a info for the page, but instead it work without this setting.<br />If you need online example with your settings I&#39;m ready to prepare for you.</p>
<p>Kind Regards<br />Tony</p>
]]></description>
        	        	<pubDate>Thu, 08 Jul 2010 20:10:42 +0300</pubDate>
        </item>
        <item>
        	<title>mikeerickson on jqgrid json help (jsonreader configuration problem)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18360</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18360</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>Well, it seems I have a better understanding now of how it should be configured and how to use the dot notation, but alas I am still not any further visa vis display of data. &#160; Here is my jqgrid call, can you see anything here that is wrong?</p>
<pre><p>$("#statesGrid").jqGrid({</p>
<p>url:&#39;states.json&#39;,</p>
<p>datatype: "json",</p>
<p>colNames: ["name","abbreviation","capital","most-populous-city","square-miles","time-zone-1","time-zone-2","dst"],</p>
<p>colModel: [</p>
<p>{name:"name",index:"name",jsonmap:"@attributes.name"},</p>
<p>{name:"abbreviation",index:"abbreviation",jsonmap:"@attributes.abbreviation"},</p>
<p>{name:"capital",index:"capital",jsonmap:"@attributes.capital"},</p>
<p>{name:"most popular city",index:"most-populous-city",jsonmap:"@attributes.most-populous-city"},</p>
<p>{name:"square miles",index:"square-miles",jsonmap:"@attributes.square-miles"},</p>
<p>{name:"time zone 1",index:"time-zone-1",jsonmap:"@attributes.time-zone-1"},</p>
<p>{name:"time zone 2",index:"time-zone-2",jsonmap:"@attributes.time-zone-2"},</p>
<p>{name:"dst",index:"dst",jsonmap:"@attributes.dst"}</p>
<p>],</p>
<p>rowNum:10,</p>
<p>rowList:[10,20,30],</p>
<p>pager: &#39;#pager&#39;,</p>
<p>sortname: &#39;name&#39;,</p>
<p>viewrecords: true,</p>
<p>sortorder: "desc",</p>
<p>caption:"States",</p>
<p>jsonReader: {</p>
<p>root: "states.state",</p>
<p>repeatitems: false</p>
<p>},</p>
<p>});</p>
<br /></pre>
]]></description>
        	        	<pubDate>Thu, 01 Jul 2010 18:55:02 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jqgrid json help (jsonreader configuration problem)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18350</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18350</guid>
        	        	<description><![CDATA[<p>Hello Mike,</p>
<p>Instead that I point you to the right direction, it seems that you do not have read the docs to the end.</p>
<p>You should read the other chapter from the docs - JSON dot notation.</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#json_dot_notation" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....t_notation</a></p>
</p>
<p>So in order to work this yo should first configurire the jsonReader</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit873' value='Select Code' data-codeid='sfcode873' /></p>
<div class='sfcode' id='sfcode873'>
<p>jsonReader : {</p>
<p>root : "states.state",</p>
<p>repeatitems: false</p>
<p>}</p>
</div>
<p>and then in your colModel to you the property jsonmap. I will do for the first field, you will finish the other.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2890' value='Select Code' data-codeid='sfcode2890' /></p>
<div class='sfcode' id='sfcode2890'>
<p>colModel:[<br />{name:&#39;name&#39;,index:&#39;name&#39;, width:75, jsonmap:"@attributes.name"}</p>
<p>...</p>
<p>// do it for others</p>
<p>},</p>
<p>]</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5754' value='Select Code' data-codeid='sfcode5754' /></p>
<div class='sfcode' id='sfcode5754'>
<p>Hope this help.</p>
<p>Best Regards</p>
<p>Tony</p>
</div>
</div>
]]></description>
        	        	<pubDate>Thu, 01 Jul 2010 12:30:11 +0300</pubDate>
        </item>
        <item>
        	<title>mikeerickson on jqgrid json help (jsonreader configuration problem)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18257</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-json-help-jsonreader-configuration-problem#p18257</guid>
        	        	<description><![CDATA[<p>I need help displaying seemingly simple JSON table. This displays grid and shows &#8220;Loading&#8221; but never shows data. i have looked all over for examples but am not able to get it work&#160;<img class="wp-smiley" src="/blog/wp-includes/images/smilies/icon_sad.gif" alt=":(" />&#160;&#160;I know I need to create a jsonReader property, but I cant seem to figure it out based on my data (see link below)</p>
</p>
<p>JSON Source:&#160;<a rel="nofollow" href="http://www.asgsoft.com/states.json" target="_blank">http://www.asgsoft.com/states.json</a></p>
<p>Code:</p>
<p>$(&#8220;#statesGrid&#8221;).jqGrid({<br />url:&#8217;states.json&#8217;,<br />datatype: &#8220;json&#8221;,<br />colNames:["name", "abbreviation","capital","most-populous-city","square-miles","time-zone-1","time-zone-2","dat"],<br />colModel:[<br />{name:&#39;name&#39;,index:&#39;name&#39;, width:75},<br />{name:&#39;abbreviation&#39;,index:&#39;abbreviation&#39;, width:90},<br />{name:&#39;capital&#39;,index:&#39;capital&#39;, width:100},<br />{name:&#39;most popular city&#39;,index:&#39;most-populous-city&#39;, width:80, align:"right"},<br />{name:&#39;square miles&#39;,index:&#39;square-miles&#39;, width:80, align:"right"},<br />{name:&#39;time zone 1&#39;,index:&#39;time-zone-1&#39;, width:80,align:"right"},<br />{name:&#39;time zone 2&#39;,index:&#39;time-zone-2&#39;, width:150, sortable:false},<br />{name:&#39;dat&#39;,index:&#39;dat&#39;,width:200}<br />],<br />rowNum:10,<br />rowList:[10,20,30],<br />pager: &#8216;#pager&#8217;,<br />sortname: &#8216;name&#8217;,<br />viewrecords: true,<br />sortorder: &#8220;desc&#8221;,<br />caption:&#8221;States&#8221;<br />});</p>
]]></description>
        	        	<pubDate>Tue, 29 Jun 2010 02:09:10 +0300</pubDate>
        </item>
</channel>
</rss>