<?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: Trouble with JSON</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/trouble-with-json</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/trouble-with-json/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>dorr on Trouble with JSON</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/trouble-with-json#p14420</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/trouble-with-json#p14420</guid>
        	        	<description><![CDATA[<p>Got it working, had an extra quote in the file</p>
]]></description>
        	        	<pubDate>Sun, 31 Jan 2010 19:22:46 +0200</pubDate>
        </item>
        <item>
        	<title>dorr on Trouble with JSON</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/trouble-with-json#p14415</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/trouble-with-json#p14415</guid>
        	        	<description><![CDATA[<p>I&#39;m trying to get the basic grid working using JSON but it&#39;s not displaying the data. &#160;Can anyone tell me what I&#39;m doing wrong? &#160;Here is my html and json:</p>
</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;</p>
<p>&#60;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&#62;</p>
<p>&#60;head&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="C:/jqgrid_test/jquery_theme/css/ui-lightness/jquery-ui-1.7.2.custom.css" /&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="C:/jqgrid_test/jqgrid/css/ui.jqgrid.css" /&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="C:/jqgrid_test/jqgrid/src/css/ui.multiselect.css" /&#62;</p>
<p>&#60;script src="C:/jqgrid_test/jqgrid/js/jquery-1.3.2.min.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;script src="C:/jqgrid_test/jqgrid/js/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;script src="C:/jqgrid_test/jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;</p>
<p>&#60;script&#62;</p>
<p>jQuery(document).ready(function(){</p>
<p>jQuery("#stateList").jqGrid({</p>
<p>url:&#39;state.json&#39;,</p>
<p>datatype:"json",</p>
</p>
<p>jsonReader : { 	root: "rows",</p>
<p>page: "page",</p>
<p>total: "total",</p>
<p>records: "records",</p>
<p>repeatitems: true,</p>
<p>cell: "cell",</p>
<p>id: "id",</p>
<p>subgrid: { root:"rows", repeatitems: true, cell:"cell" }</p>
<p>},</p>
</p>
<p>colNames:["State Id","State Code","State Name"],</p>
<p>colModel :[</p>
<p>{name:"stateId", index:"stateId", width:70},</p>
<p>{name:"stateCde", index:"stateCde", width:100},</p>
<p>{name:"stateNameTxt", index:"stateNameTxt", width:200}</p>
<p>],</p>
<p>pager: jQuery("#pager"),</p>
<p>sortname: "stateNameTxt",</p>
<p>sortable: true,</p>
<p>sortorder: "desc",</p>
<p>rowNum:10,</p>
<p>rowList:[10,20,30],</p>
<p>viewrecords: true,</p>
<p>caption: "State List",</p>
<p>multiselect:true,</p>
<p>loadtext:"Loading...",</p>
<p>loadonce: true</p>
<p>});</p>
<p>});</p>
<p>&#60;/script&#62;</p>
<p>&#60;/head&#62;</p>
<p>&#60;body&#62;</p>
<p>&#60;table id=&#39;stateList&#39;&#62;&#60;/table&#62;</p>
<p>&#60;div id=&#39;pager&#39; style=&#39;text-align:center;&#39;&#62;&#60;/div&#62;</p>
<p>&#60;/body&#62;</p>
<p>&#60;/html&#62;</p>
</p>
<p>{</p>
<p>total: &#39;1&#39;,</p>
<p>page: &#39;1&#39;,</p>
<p>records: &#39;4&#39;,</p>
<p>rows : [</p>
<p>{id:&#39;1&#39;, cell:[&#39;1&#39;, &#39;GL&#39;, &#39;Georgia&#39;]},</p>
<p>{id:&#39;2&#39;, cell:[&#39;2&#39;, &#39;SC&#39;, &#39;South Carolina&#39;]},</p>
<p>{id:&#39;3&#39;, cell:[&#39;3&#39;, &#39;NC&#39;, &#39;North Carolina&#39;]},</p>
<p>{id:&#39;4&#39;, cell:[&#39;4&#39;", &#39;FL&#39;, &#39;Florida&#39;]}]}</p></p>
]]></description>
        	        	<pubDate>Sat, 30 Jan 2010 23:10:53 +0200</pubDate>
        </item>
</channel>
</rss>