<?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: Example how to use addJSONData</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata</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/example-how-to-use-addjsondata/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Example how to use addJSONData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5618</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5618</guid>
        	        	<description><![CDATA[<p>Hello Anthony,</p>
<p>Sorry, but some time I do not have access to jqGrid code in order to answer exactly. Thanks for this - I will remember - when I&#39;m not sure I will not answer.</p>
<p>Look at New in version 3.3 -&#62; Data type as function</p>
<p>Here we have:</p>
<p>..jqGrid({</p>
<p>...</p>
<p>datatype : 	function  (pdata) {</p>
<p>$.ajax({</p>
<p>url:&#39;server.php?q=2&#39;,</p>
<p>data:pdata,</p>
<p>dataType:"json",</p>
<p>complete: function(jsondata,stat)</p>
<p>{ 				if(stat=="success") {</p>
<p>var thegrid = jQuery("#listdt")[0];</p>
<p>thegrid.addJSONData(eval("("+jsondata.responseText+")"))</p>
<p>}</p>
<p>}</p>
<p>});</p>
<p>},</p>
<p>...</p>
<p>});</p>
<p>Does this help?</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 26 Mar 2009 03:34:01 +0200</pubDate>
        </item>
        <item>
        	<title>anthonyb on Example how to use addJSONData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5572</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5572</guid>
        	        	<description><![CDATA[<p>I&#39;ve looked at the examples. It&#39;s still does not work. What I don&#39;t undestand is that yesterday you said:"Do not use JSON.parse - just send the string". Now you say "use eval and not parse". So, shall I just send the string or shall I use eval?</p>
<p>Have you actually tried the example on your machine? If so, can you post the working code?</p>
<p>Thanks.</p></p>
]]></description>
        	        	<pubDate>Tue, 24 Mar 2009 12:42:35 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Example how to use addJSONData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5544</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5544</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Look at the examples - If I look right now you should do:</p>
<p>eval and not parse - i.e</p>
<p>$(&#8221;#list&#8221;)[0].addJSONData(eval("("+mystring+")"));</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 24 Mar 2009 02:23:11 +0200</pubDate>
        </item>
        <item>
        	<title>anthonyb on Example how to use addJSONData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5517</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5517</guid>
        	        	<description><![CDATA[<p>Hi Tony. Thanks for your reply but it doesn&#39;t seem to work. It&#39;s a very simple example. Have you tried it on your own machine? If so, could you post the exact code you&#39;re using? I&#39;m using the lastest version of jqGrid.</p>
]]></description>
        	        	<pubDate>Mon, 23 Mar 2009 06:58:09 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Example how to use addJSONData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5490</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5490</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Do not use JSON.parse - just send the string</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 21 Mar 2009 11:36:27 +0200</pubDate>
        </item>
        <item>
        	<title>anthonyb on Example how to use addJSONData</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5451</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/example-how-to-use-addjsondata#p5451</guid>
        	        	<description><![CDATA[<p>I can&#39;t get addJSONData to work. I&#39;m doing something very simple which should work in theory. What&#39;s wrong with this piece of code?</p>
</p>
<p>&#160;&#60;table id="list" class="scroll" cellpadding="0" cellspacing="0"&#62;&#60;/table&#62;</p>
<p>$("#list")[0].addJSONData(JSON.parse("{total: 1, page: 1, records: 1, rows : [ {id: &#39;1&#39;, cell:[&#39;1&#39;, &#39;2007-10-01&#39;, &#39;test&#39;, &#39;note&#39;, &#39;new&#39;, &#39;200.00&#39;, &#39;10.00&#39;, &#39;210.00&#39;]} ] }"));</p>
</p>
<p>Thanks,</p>
<p>Anthony</p>
]]></description>
        	        	<pubDate>Thu, 19 Mar 2009 12:45:53 +0200</pubDate>
        </item>
</channel>
</rss>