<?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: Unable to load data into jqGrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-load-data-into-jqgrid</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/unable-to-load-data-into-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>lupin on Unable to load data into jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-load-data-into-jqgrid#p14934</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-load-data-into-jqgrid#p14934</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>&#160;Start with this example grid definiton and expected grid output and modify it to suit your need.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6047' value='Select Code' data-codeid='sfcode6047' /></p>
<div class='sfcode' id='sfcode6047'>
<p>jQuery(&#34;#list2&#34;).jqGrid({ <a href=&#34;/blog/&#39;/list&#34; target="_blank">url:&#39;/list</a>,<br />&#160;width: 1000, <br />&#160;height: &#34;100%&#34;,<br />&#160;datatype: &#34;json&#34;,<br />&#160;colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],<br />&#160;colModel:[ {name:&#39;id&#39;,index:&#39;id&#39;, width:55},<br />&#160;&#160;&#160;&#160; {name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90,editable:true, editoptions:{size:10}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;name&#39;,index:&#39;name asc, invdate&#39;, width:100,editable:true,editoptions:{size:10}},&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:&#34;right&#34;}, {name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:&#34;right&#34;},&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:&#34;right&#34;}, {name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false} ],&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:10, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#pager2&#39;, sortname: &#39;id&#39;, viewrecords: true, sortorder: &#34;desc&#34;, caption:&#34;Grid Display&#34; });</p>
</p>
<p>Expected Grid JSON input</p>
<p>{&#34;page&#34;:&#34;&#34;,&#34;records&#34;:&#34;40&#34;,&#34;rows&#34;:[{&#34;id&#34;:&#34;1&#34;,&#34;cell&#34;:[&#34;1&#34;,&#34;2010-30-10&#34;,&#34;1&#34;,&#34;250.00&#34;,&#34;100.00&#34;,&#34;350.00&#34;,&#34;Description&#34;]}],{&#34;id&#34;:&#34;2&#34;,&#34;cell&#34;:[&#34;2&#34;,&#34;2010-30-10&#34;,&#34;2&#34;,&#34;250.00&#34;,&#34;100.00&#34;,&#34;350.00&#34;,&#34;Description&#34;]}],&#34;total&#34;:&#34;30&#34;}</p>
</div>
<p>Hope this helps,</p>
<p>lupin</p>
]]></description>
        	        	<pubDate>Thu, 18 Feb 2010 14:24:12 +0200</pubDate>
        </item>
        <item>
        	<title>elmonty on Unable to load data into jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-load-data-into-jqgrid#p14920</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-load-data-into-jqgrid#p14920</guid>
        	        	<description><![CDATA[<p>I looked at that documentation. Most of it seemed to be about customizing jsonreader, which I don&#39;t need to do.&#160; In any case, I added the jsonreader section to my configuration and modified my AJAX output to generate the data as an array. It still doesn&#39;t load anything.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2977' value='Select Code' data-codeid='sfcode2977' /></p>
<div class='sfcode' id='sfcode2977'>$(&#34;#SelectHcsTable&#34;).jqGrid({<br />&#160;&#160; &#160;jsonReader : {<br />&#160;&#160; &#160; root: &#34;rows&#34;,<br />&#160;&#160; &#160; page: &#34;page&#34;,<br />&#160;&#160; &#160; total: &#34;total&#34;,<br />&#160;&#160; &#160; records: &#34;records&#34;,<br />&#160;&#160; &#160; repeatitems: true,<br />&#160;&#160; &#160; cell: &#34;cell&#34;,<br />&#160;&#160; &#160; id: &#34;id&#34;,<br />&#160;&#160; &#160; userdata: &#34;userdata&#34;,<br />&#160;&#160; &#160; subgrid: {root:&#34;rows&#34;, <br />&#160;&#160; &#160;&#160;&#160; &#160;repeatitems: true, <br />&#160;&#160; &#160;&#160;&#160; cell:&#34;cell&#34;<br />&#160;&#160; &#160; }<br />&#160;&#160; &#160;},<br />&#160;&#160; &#160;colNames:[&#39;HCS ID&#39;,&#39;HCS Name&#39;, &#39;City&#39;,&#39;Current Hospitals&#39;,&#39;Max Hospitals&#39;],<br />&#160;&#160; &#160;colModel :[<br />&#160;&#160; &#160;&#160; {name:&#39;EntityID&#39;, index:&#39;EntityID&#39;, hidden:true, key:true},<br />&#160;&#160; &#160;&#160; {name:&#39;Name&#39;, index:&#39;Name&#39;, width:200},<br />&#160;&#160; &#160;&#160; {name:&#39;CityState&#39;, index:&#39;CityState&#39;, width:160},<br />&#160;&#160; &#160;&#160; {name:&#39;HospitalCount&#39;, index:&#39;HospitalCount&#39;, width:130, align:&#39;center&#39;},<br />&#160;&#160; &#160;&#160; {name:&#39;MaxHospitals&#39;, index:&#39;MaxHospitals&#39;, width:110, align:&#39;center&#39;} ],<br />&#160;&#160; &#160;caption: &#39;Select an HCS:&#39;,<br />&#160;&#160; &#160;forceFit:true,<br />&#160;&#160; &#160;hidegrid:false,<br />&#160;&#160; &#160;scroll:true,<br />&#160;&#160; &#160;scrollrows:true,<br />&#160;&#160; &#160;url:&#39;ajax/GetHcsList.php?name=h&#39;,<br />&#160;&#160; &#160;datatype:&#39;json&#39;<br />});</div>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7968' value='Select Code' data-codeid='sfcode7968' /></p>
<div class='sfcode' id='sfcode7968'>{<br />total:&#34;1&#34;,<br />page:&#34;1&#34;,<br />records:&#34;23&#34;,<br />rows:[{id:&#34;30&#34;, cells:[&#34;30&#34;, &#34;HCN 2/13 #1&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;37&#34;, cells:[&#34;37&#34;, &#34;HCN 2/13 #10&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;38&#34;, cells:[&#34;38&#34;, &#34;HCN 2/13 #11&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;39&#34;, cells:[&#34;39&#34;, &#34;HCN 2/13 #12&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;40&#34;, cells:[&#34;40&#34;, &#34;HCN 2/13 #13&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;31&#34;, cells:[&#34;31&#34;, &#34;HCN 2/13 #2&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;32&#34;, cells:[&#34;32&#34;, &#34;HCN 2/13 #3&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;33&#34;, cells:[&#34;33&#34;, &#34;HCN 2/13 #4&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;34&#34;, cells:[&#34;34&#34;, &#34;HCN 2/13 #6&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;35&#34;, cells:[&#34;35&#34;, &#34;HCN 2/13 #8&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;36&#34;, cells:[&#34;36&#34;, &#34;HCN 2/13 #9&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;29&#34;, cells:[&#34;29&#34;, &#34;HCN1&#34;, &#34;, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;245&#34;, cells:[&#34;245&#34;, &#34;HCS 101&#34;, &#34;111, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;246&#34;, cells:[&#34;246&#34;, &#34;HCS 2&#34;, &#34;2, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;341&#34;, cells:[&#34;341&#34;, &#34;HCS Sept&#34;, &#34;lkjfldkjgdlkj, &#34;, &#34;2&#34;, &#34;0&#34;]}<br />,{id:&#34;402&#34;, cells:[&#34;402&#34;, &#34;HCS0509&#34;, &#34;kk, &#34;, &#34;1&#34;, &#34;1&#34;]}<br />,{id:&#34;392&#34;, cells:[&#34;392&#34;, &#34;HCS2007&#34;, &#34;ffdf, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;394&#34;, cells:[&#34;394&#34;, &#34;HCS2007&#34;, &#34;ffdf, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;396&#34;, cells:[&#34;396&#34;, &#34;HCS2007&#34;, &#34;ffdf, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;398&#34;, cells:[&#34;398&#34;, &#34;HCS2007A&#34;, &#34;11, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;400&#34;, cells:[&#34;400&#34;, &#34;hcs2007b&#34;, &#34;2, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />,{id:&#34;365&#34;, cells:[&#34;365&#34;, &#34;hcs777&#34;, &#34;a, &#34;, &#34;3&#34;, &#34;0&#34;]}<br />,{id:&#34;363&#34;, cells:[&#34;363&#34;, &#34;hcu 3&#34;, &#34;w bloomfield, &#34;, &#34;1&#34;, &#34;0&#34;]}<br />]}</div>
]]></description>
        	        	<pubDate>Thu, 18 Feb 2010 03:02:02 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Unable to load data into jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-load-data-into-jqgrid#p14894</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-load-data-into-jqgrid#p14894</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You should configure the jsonReader - also try to set repeatitems to false.</p>
<p>Look here:</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#json_data" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....#json_data</a></p>
<p>Regards</p></p>
]]></description>
        	        	<pubDate>Wed, 17 Feb 2010 13:01:41 +0200</pubDate>
        </item>
        <item>
        	<title>elmonty on Unable to load data into jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/unable-to-load-data-into-jqgrid#p14848</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/unable-to-load-data-into-jqgrid#p14848</guid>
        	        	<description><![CDATA[<p>I can&#39;t get data into the grid. Here&#39;s the grid definition:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3812' value='Select Code' data-codeid='sfcode3812' /></p>
<div class='sfcode' id='sfcode3812'>$(&#34;#SelectHcsTable&#34;).jqGrid({<br />&#160;&#160;&#160;&#160; colNames:[&#39;HCS ID&#39;,&#39;HCS Name&#39;, &#39;City&#39;,&#39;Current Hospitals&#39;,&#39;Max Hospitals&#39;],<br />&#160;&#160;&#160;&#160; colModel :[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;EntityID&#39;, index:&#39;EntityID&#39;, hidden:true, key:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;Name&#39;, index:&#39;Name&#39;, width:200},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;CityState&#39;, index:&#39;CityState&#39;, width:160},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;HospitalCount&#39;, index:&#39;HospitalCount&#39;, width:130, align:&#39;center&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;MaxHospitals&#39;, index:&#39;MaxHospitals&#39;, width:110, align:&#39;center&#39;} ],<br />&#160;&#160;&#160;&#160; caption: &#39;Select an HCS:&#39;,<br />&#160;&#160;&#160;&#160; forceFit:true,<br />&#160;&#160;&#160;&#160; hidegrid:false,<br />&#160;&#160;&#160;&#160; scroll:true,<br />&#160;&#160;&#160;&#160; scrollrows:true,<br />&#160;&#160;&#160;&#160; url:&#39;ajax/GetHcsList.php?name=h&#39;,<br />&#160;&#160;&#160;&#160; datatype:&#39;json&#39;<br />&#160;&#160;&#160;&#160; });</div>
</p>
<p>Here&#39;s the data returned by the PHP file:</p>
</p>
<p>(opening brace)</p>
<p>total:1,</p>
<p>page:1,</p>
<p>records:23,</p>
<p>rows:[{EntityID:30, Name:"HCN 2/13 #1", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:37, Name:"HCN 2/13 #10", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:38, Name:"HCN 2/13 #11", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:39, Name:"HCN 2/13 #12", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:40, Name:"HCN 2/13 #13", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:31, Name:"HCN 2/13 #2", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:32, Name:"HCN 2/13 #3", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:33, Name:"HCN 2/13 #4", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:34, Name:"HCN 2/13 #6", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:35, Name:"HCN 2/13 #8", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:36, Name:"HCN 2/13 #9", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:29, Name:"HCN1", City:", ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:245, Name:"HCS 101", City:"111, ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:246, Name:"HCS 2", City:"2, ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:341, Name:"HCS Sept", City:"lkjfldkjgdlkj, ", HospitalCount:2, MaxHospitals:0},</p>
<p>{EntityID:402, Name:"HCS0509", City:"kk, ", HospitalCount:1, MaxHospitals:1},</p>
<p>{EntityID:392, Name:"HCS2007", City:"ffdf, ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:394, Name:"HCS2007", City:"ffdf, ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:396, Name:"HCS2007", City:"ffdf, ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:398, Name:"HCS2007A", City:"11, ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:400, Name:"hcs2007b", City:"2, ", HospitalCount:1, MaxHospitals:0},</p>
<p>{EntityID:365, Name:"hcs777", City:"a, ", HospitalCount:3, MaxHospitals:0},</p>
<p>{EntityID:363, Name:"hcu 3", City:"w bloomfield, ", HospitalCount:1, MaxHospitals:0}</p>
<p>]}</p>
<pre id="line1"><br />What am I doing wrong?<br /><br />God, I hate this editor.<br /></pre>
]]></description>
        	        	<pubDate>Wed, 17 Feb 2010 05:27:42 +0200</pubDate>
        </item>
</channel>
</rss>