<?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: data not displayed in jqgrid when using json url</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/data-not-displayed-in-jqgrid-when-using-json-url</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/data-not-displayed-in-jqgrid-when-using-json-url/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>deejay217 on data not displayed in jqgrid when using json url</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/data-not-displayed-in-jqgrid-when-using-json-url#p28297</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/data-not-displayed-in-jqgrid-when-using-json-url#p28297</guid>
        	        	<description><![CDATA[<pre class="default prettyprint prettyprinted"><blockquote><p><input type='button' class='sfcodeselect' name='sfselectit3347' value='Select Code' data-codeid='sfcode3347' /></p><div class='sfcode' id='sfcode3347'></div></blockquote></pre>
<pre class="default prettyprint prettyprinted"><span style="font-family: monospace;">I am trying to use jqGrid with JSON url but not able to use it. The htm page does not display any data.</span></pre>
<pre class="default prettyprint prettyprinted"><span style="font-family: monospace;">Below is my code:</span></pre>
<pre class="default prettyprint prettyprinted"></pre>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit7453' value='Select Code' data-codeid='sfcode7453' /></p><div class='sfcode' id='sfcode7453'>$(function () {
    &#34;use strict&#34;;
    $(&#39;#list&#39;).jqGrid({
        datatype: &#39;json&#39;,
        url: &#39;json_url&#39;,
        caption: &#39;Prospect Finder&#39;,
        gridview: true,
        height: &#34;auto&#34;,
        colNames: [&#39;Partner&#39;,&#39;First&#160;Name&#39;,&#160;&#39;Last&#160;Name&#39;,&#160;&#39;Organization&#39;],
        colModel: [
            {name: &#39;PARTNER&#39;, jsonmap: &#39;PARTNER&#39; },
            {name: &#39;NAME_FIRST&#39;,jsonmap: &#39;NAME_FIRST&#39; },
            {name: &#39;NAME_LAST&#39;, jsonmap: &#39;NAME_LAST&#39; },
            {name: &#39;NAME_ORG1&#39;, jsonmap: &#39;NAME_ORG1&#39; }
        ],
        jsonReader: {
            repeatitems: false,
            id: &#34;PARTNER&#34;,
            root: function (obj) {
                return obj;
            }
        }
    });
});</div></pre>
<pre class="default prettyprint prettyprinted"></pre>
<pre class="default prettyprint prettyprinted"></pre>
<pre class="default prettyprint prettyprinted"></pre>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit6682' value='Select Code' data-codeid='sfcode6682' /></p><div class='sfcode' id='sfcode6682'>And this is my JSON data</div></pre>
<pre class="default prettyprint prettyprinted"></pre>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit7686' value='Select Code' data-codeid='sfcode7686' /></p><div class='sfcode' id='sfcode7686'><pre class=&#34;&#34;default&#34;><div class=&#34;&#34;sfcode&#34;&#34;>{&#34;itab&#34;:[ { &#34;PARTNER&#34;:&#34;0061000220&#34;, &#34;NAME_FIRST&#34;:&#34;&#34;, &#34;NAME_LAST&#34;:&#34;&#34;, &#34;NAME_ORG1&#34;:&#34;GTA Central&#34; }  ]}</div></pre>
</div>
<pre class="default prettyprint prettyprinted"></pre>
]]></description>
        	        	<pubDate>Fri, 15 Feb 2013 23:40:28 +0200</pubDate>
        </item>
</channel>
</rss>