<?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: Loading JSON data...</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/loading-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/discussion/loading-json-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Loading JSON data...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/loading-json-data#p28452</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/loading-json-data#p28452</guid>
        	        	<description><![CDATA[<p>By the way you have some error in the code.</p>
<p>Replace</p>
<p><input type='button' class='sfcodeselect' name='sfselectit610' value='Select Code' data-codeid='sfcode610' /></p>
<div class='sfcode' id='sfcode610'>
<p>.navGrid(&#39;#grid-customers-pager&#39;,{ edit: false, add: true }, {}, {}, {}, {}, {}).inlineNav("#grid-customers-pager",{});</p>
</div>
<p>with</p>
<p><input type='button' class='sfcodeselect' name='sfselectit366' value='Select Code' data-codeid='sfcode366' /></p>
<div class='sfcode' id='sfcode366'>
<p>jQuery("#grid-customers")</p>
<p>.jqGrid(&#39;navGrid&#39;,&#39;#grid-customers-pager&#39;,{ edit: false, add: true }, {}, {}, {}, {},&#160; {})</p>
<p>.jqGrid(&#39;inlineNav&#39;,"#pager",{});</p>
</div>
]]></description>
        	        	<pubDate>Thu, 14 Mar 2013 09:01:53 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Loading JSON data...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/loading-json-data#p28451</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/loading-json-data#p28451</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Not sure what you do and how you do it.</p>
<p>Your example works perfectley at my end. I have copy paste your exmple and it works without modification.</p>
<p>If you want I can post it online. Please check your response for other errors.</p>
</p>
<p>By the way if you use jsonReader with repeatitems set to true (as in your case) you do not need to use jsonmap in colModel</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 14 Mar 2013 08:44:46 +0200</pubDate>
        </item>
        <item>
        	<title>sepy on Loading JSON data...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/loading-json-data#p28449</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/loading-json-data#p28449</guid>
        	        	<description><![CDATA[<p>$(function(){</p>
</p>
<p>var lastSel;</p>
<p>jQuery("#grid-customers").jqGrid({</p>
<p>url:&#39;php.scripts/get.customers.json.php&#39;,</p>
<p>datatype: &#39;json&#39;,</p>
<p>mtype: &#39;POST&#39;,</p>
<p>colNames:[&#39;idcustomers&#39;,&#39;firstname&#39;, &#39;lastname&#39;,&#39;address1&#39;,&#39;address2&#39;,&#39;city&#39;,&#39;state&#39;,&#39;zip&#39;,&#39;phone&#39;,&#39;email&#39;,&#39;cell&#39;],</p>
<p>colModel :[</p>
<p>{name:&#39;idcustomers&#39;, index:&#39;idcustomers&#39;, width:55, jsonmap: &#39;idcustomers&#39;},</p>
<p>{name:&#39;firstname&#39;, index:&#39;firstname&#39;, width:90, editable: true, jsonmap: &#39;firstname&#39;},</p>
<p>{name:&#39;lastname&#39;, index:&#39;lastname&#39;, width:90, editable: true, jsonmap: &#39;lastname&#39;},</p>
<p>{name:&#39;address1&#39;, index:&#39;address1&#39;, width:90, editable: true, jsonmap: &#39;address1&#39;},</p>
<p>{name:&#39;address2&#39;, index:&#39;address2&#39;, width:90, editable: true, jsonmap: &#39;address2&#39;},</p>
<p>{name:&#39;city&#39;, index:&#39;city&#39;, width:90, editable: true, jsonmap: &#39;city&#39;},</p>
<p>{name:&#39;state&#39;, index:&#39;state&#39;, width:90, editable: true, jsonmap: &#39;state&#39;},</p>
<p>{name:&#39;zip&#39;, index:&#39;zip&#39;, width:90, editable: true, jsonmap: &#39;zip&#39;},</p>
<p>{name:&#39;phone&#39;, index:&#39;phone&#39;, width:90, editable: true, jsonmap: &#39;phone&#39;},</p>
<p>{name:&#39;email&#39;, index:&#39;email&#39;, width:90, editable: true, jsonmap: &#39;email&#39;},</p>
<p>{name:&#39;cell&#39;, index:&#39;cell&#39;, width:90, editable: true, jsonmap: &#39;cell&#39;}</p>
<p>],</p>
<p>pager: &#39;#grid-customers-pager&#39;,</p>
<p>rowNum:100,</p>
<p>rowList:[100,200,300],</p>
<p>sortname: &#39;idcustomers&#39;,</p>
<p>sortorder: &#39;desc&#39;,</p>
<p>viewrecords: true,</p>
<p>gridview: true,</p>
<p>caption: &#39;Customers&#39;,</p>
<p>height: 375,</p>
<p>width: 1200,</p>
<p>editurl: &#39;php.scripts/update.row.php&#39;,</p>
<p>ajaxGridOptions: {type:"POST"}</p>
</p>
<p>}).navGrid(&#39;#grid-customers-pager&#39;,{ edit: false, add: true }, {}, {}, {}, {}, {}).inlineNav("#grid-customers-pager",{});</p>
</p>
<p>jQuery("#grid-customers").jqGrid(&#39;filterToolbar&#39;,{autoSearch: true});</p>
<p>});</p>
]]></description>
        	        	<pubDate>Thu, 14 Mar 2013 08:25:10 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Loading JSON data...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/loading-json-data#p28447</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/loading-json-data#p28447</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>How look your grid configuration?</p>
]]></description>
        	        	<pubDate>Thu, 14 Mar 2013 08:21:22 +0200</pubDate>
        </item>
        <item>
        	<title>sepy on Loading JSON data...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/loading-json-data#p28443</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/loading-json-data#p28443</guid>
        	        	<description><![CDATA[<p>My grid is set to method type post and datatype of json. I see the output that is echoed is not rendered in the grid and I was wondering why this might be? I made use of json_encode and the code example for loading json data. This array does not load into the grid though. I will past my script below as well.</p>
</p>
<p>[CODE]</p>
<p>{"page":"1","total":1,"records":"33","rows":[{"id":"40","cell":["40","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","91360","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"41","cell":["41","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","91364","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"42","cell":["42","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","93021","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"43","cell":["43","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"44","cell":["44","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","93063","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"45","cell":["45","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","91387","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"46","cell":["46","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"48","cell":["48","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","91423","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"49","cell":["49","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","91355","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"50","cell":["50","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","91605","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"51","cell":["51","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","91377","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"52","cell":["52","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","93063","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"53","cell":["53","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","93021","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"54","cell":["54","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","93012","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"55","cell":["55","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","93001","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"56","cell":["56","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","93021","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"57","cell":["57","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"58","cell":["58","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","93063","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"59","cell":["59","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","91360","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"60","cell":["60","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"61","cell":["61","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","91377","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"62","cell":["62","Jack","Doe","112 Button Hollow Pl.","","Gotham","CA","91301","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"63","cell":["63","Jill","Doe","112 Button Hollow Pl.","","Gotham","CA","92833","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"64","cell":["64","Jane","Doe","112 Button Hollow Pl.","","Gotham","CA","91406","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"65","cell":["65","Janet","Doe","112 Button Hollow Pl.","","Gotham","CA","90025","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"66","cell":["66","Sepopotimus","Maximus","315 Eagle Ridge St.","","Newbury Park","CA","91307","(805) 555-1212","jdoe@gmail.com","(805) 555-1212"]},{"id":"67","cell":["67","Eric","Sepich","315 Eagle Ridge St.","","Newbury Park","CA","91320","(805) 402-8072","sepich.eric@gmail.com","(805) 555-1212"]},{"id":"68","cell":["68","Sepotomus","Minimus","315 Eagle Ridge St.","","Newbury Park","CA","91320","","",""]},{"id":"70","cell":["70","Julius","Cesar","111 Etu","Brute Ct.","Rome","","","","",""]},{"id":"75","cell":["75","Marhsal","Mathers","12075 E. Presilla Rd","","Camarillo","CA","91320","","",""]},{"id":"76","cell":["76","Steve","Mathers","Little Hollow","","Moorpark","","","","",""]},{"id":"77","cell":["77","Phil","Esposito","","","Palmdale","","","","",""]},{"id":"79","cell":["79","aaa","aaa","","","","","","","",""]}]}</p>
<p>[/CODE]</p>
]]></description>
        	        	<pubDate>Thu, 14 Mar 2013 07:20:50 +0200</pubDate>
        </item>
</channel>
</rss>