<?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: populate jqgrid with json data</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-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/help/populate-jqgrid-with-json-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on populate jqgrid with json data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p30449</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p30449</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I&#39;m tottaly confused on what you try to do.</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Sun, 06 Apr 2014 13:13:40 +0300</pubDate>
        </item>
        <item>
        	<title>sadmulwar on populate jqgrid with json data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p30442</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p30442</guid>
        	        	<description><![CDATA[<p>I want to update a single row into jqgrid. I have the selected row id and modified data into the JSON formate.<br />Is this possible that I can update a single row into jqgrid ?</p>
]]></description>
        	        	<pubDate>Fri, 04 Apr 2014 16:52:25 +0300</pubDate>
        </item>
        <item>
        	<title>zalath on populate jqgrid with json data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p23247</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p23247</guid>
        	        	<description><![CDATA[<p>thank you&#160;Oleg</p>
<p>It&#160;works&#160;now&#160;although I&#160;find&#160;the&#160;use&#160;complex.<br />I now try&#160;to&#160;find&#160;a&#160;solution&#160;to&#160;synchronize&#160;the&#160;load on demand feature between&#160;client&#160;and&#160;server sides</p>
<p>best regards</p></p>
]]></description>
        	        	<pubDate>Thu, 19 May 2011 20:00:04 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on populate jqgrid with json data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p23162</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p23162</guid>
        	        	<description><![CDATA[<p>What do you mean under "I&#39;ve try to follow the sample without success". Could you download <a href="http://www.ok-soft-gmbh.com/jqGrid/WebServicesPostToJqGrid.zip" target="_blank">the example</a>, compile and run it? Is it work? What problems you had? You should understand this to be able to use jqGrid.</p>
<p>The list of disadvantagis of addJSONData is long. Look at <a href="http://stackoverflow.com/questions/2660226/should-one-replace-the-usage-addjsondata-of-jqgrid-to-the-usage-of-setgridparam" target="_blank">here</a> for example. The method addJSONData don&#39;t throw any error like all other methods. If you want to see errors you have to implement <strong>loadError</strong> event handler.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Fri, 13 May 2011 16:45:38 +0300</pubDate>
        </item>
        <item>
        	<title>zalath on populate jqgrid with json data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p23160</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p23160</guid>
        	        	<description><![CDATA[<p>Thanks for your quick reply</p>
<p>but I&#39;ve try to follow the sample without success. In fact the "addJSONData" function doesn&#39;t seem to care about the passed data.</p>
<p>for example : &#160;thegrid.addJSONData(datajson,null,&#39;nothing&#39;) does not throw any error</p>
]]></description>
        	        	<pubDate>Fri, 13 May 2011 16:14:31 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on populate jqgrid with json data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p23156</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p23156</guid>
        	        	<description><![CDATA[<p>You use wrong template code to implement the jqGrid with respect of datatype which is a function. It was needed for very very old versions of jqGrid. jqGrid supports many parameters which allow you to get JSON data from practicaty any sever inclusive ASMX web services.</p>
<p>In <a href="/blog/?page_id=393/help/pager-not-working-for-me-where-am-i-doing-wrong/#p19300" target="_blank">the answer</a> for example you will find full working code which shows how you to use ASMX to provide the data for jqGrid.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Fri, 13 May 2011 13:15:44 +0300</pubDate>
        </item>
        <item>
        	<title>zalath on populate jqgrid with json data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p23153</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-jqgrid-with-json-data#p23153</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;l unabled to populate a jqgrid with json data :</p>
<p>the data :</p>
</p>
<p>{ "total": "1","page": "1","records": "9","rows":[ { "id": 1,"cell":[ "1","Davolio","Nancy","F"]}, { "id": 2,"cell":[ "2","Fuller","Andrew","F"]}, { "id": 3,"cell":[ "3","Leverling","Janet","F"]}, { "id": 4,"cell":[ "4","Peacock","Margaret","F"]}, { "id": 5,"cell":[ "5","Buchanan","Steven","F"]}, { "id": 6,"cell":[ "6","Suyama","Michael","M"]}, { "id": 7,"cell":[ "7","King","Robert","M"]}, { "id": 8,"cell":[ "8","Callahan","Laura","M"]}, { "id": 9,"cell":[ "9","Dodsworth","Anne","M"]} ]}</p>
</p>
<p>the script :</p>
</p>
<pre>&#160;function&#160;Button1_onclick()&#160;{
 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;jQuery(document).ready(function&#160;()&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;$(&#39;#liste&#39;).jqGrid({
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;datatype:&#160;function&#160;()&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;$.ajax({
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;url:&#160;"WS.asmx/ListeEmployes",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;data:&#160;"{}",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;dataType:&#160;"json",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;type:&#160;"POST",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;contentType:&#160;"application/json;&#160;charset=utf-8",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;complete:&#160;function&#160;(jsondata,&#160;stat)&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if&#160;(stat&#160;==&#160;"success")&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var&#160;thegrid&#160;=&#160;jQuery("#liste")[0];
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var&#160;datajson&#160;=&#160;JSON.parse(jsondata.responseText).d;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;thegrid.addJSONData(datajson);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;alert(datajson);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;});
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;},
 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;colNames:&#160;[&#39;EmployeeID&#39;,&#160;&#39;LastName&#39;,&#160;&#39;FirstName&#39;,&#160;&#39;empSex&#39;],
 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;colModel:&#160;[
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{name:&#160;&#39;EmployeeID&#39;,&#160;index:&#160;&#39;EmployeeID&#39;,width:&#160;200},
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{name:&#160;&#39;LastName&#39;,&#160;index:&#160;&#39;LastName&#39;,&#160;width:&#160;200},&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{name:&#160;&#39;FirstName&#39;,&#160;index:&#160;&#39;FirstName&#39;,&#160;width:&#160;200},
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{name:&#160;&#39;empSex&#39;,&#160;index:&#160;&#39;empSex&#39;,&#160;width:&#160;100,&#160;align:&#160;&#39;center&#39;}
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;],
 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;pager:&#160;jQuery(&#39;#pager&#39;),
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;rowNum:&#160;10,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;rowList:&#160;[10,20,30],
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sortname:&#160;&#39;EmployeeID&#39;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sortorder:&#160;"desc",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;viewrecords:&#160;true,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;imgpath:&#160;&#39;images&#39;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;caption:&#160;&#39;My&#160;first&#160;grid&#39;,
 
 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;jsonReader:&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;page:&#160;"page",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;total:&#160;"total",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;root:&#160;"rows",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;id:&#160;"id",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;records:&#160;"records",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;repeatitems:&#160;false,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cell:&#160;"cell"
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;},
 
 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}).navGrid("#pager",&#160;{&#160;edit:&#160;true,&#160;add:&#160;true,&#160;del:&#160;true&#160;});
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;});
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}</pre>
</p>
<p>the grid is well formated but empty.</p>
</p>
<p>I can manually load data in the grid with this script bellow :</p>
<pre>jQuery("#a4").click(function&#160;()&#160;{
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var&#160;datarow&#160;=&#160;{&#160;EmployeeID:&#160;"10",&#160;LastName:&#160;"test&#160;LN",&#160;FirstName:&#160;"test&#160;FN",&#160;empSex:&#160;"M"&#160;};
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;jQuery("#liste").jqGrid(&#39;addRowData&#39;,&#160;99,&#160;datarow);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;});</pre>
<pre><img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /></pre>
<p>can you tell what I&#39;m doing wrong,&#160;</p>
</p>
<p>regards</p></p>
]]></description>
        	        	<pubDate>Fri, 13 May 2011 11:46:34 +0300</pubDate>
        </item>
</channel>
</rss>