<?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: AddJSONData not working? (find the errror!)</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/addjsondata-not-working-find-the-errror</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/addjsondata-not-working-find-the-errror/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on AddJSONData not working? (find the errror!)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/addjsondata-not-working-find-the-errror#p7763</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/addjsondata-not-working-find-the-errror#p7763</guid>
        	        	<description><![CDATA[<p>Hello again,</p>
<p>sorry put a save button before finishing</p>
<p>you should</p>
<p>var response = &#8220;{ [{&#39;id&#39;:&#39;5&#39;,&#39;name&#39;:&#39;john smith&#39;}] }&#8220;;</p>
<p>and configure jsonReader for this.</p>
<p>Please first refer to documentatin before posting issue.</p>
<p>Also you can use the addJsonData in the way that you have - i.e not in datatype function.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 10 Jul 2009 07:55:03 +0300</pubDate>
        </item>
        <item>
        	<title>tony on AddJSONData not working? (find the errror!)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/addjsondata-not-working-find-the-errror#p7761</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/addjsondata-not-working-find-the-errror#p7761</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>var response = &#8220;[{&#39;id&#39;:&#39;5&#39;,&#39;name&#39;:&#39;john smith&#39;}]&#8220;;</p>
<p>jQuery(&#8221;#list2&#8243;).jqGrid({<br />&#160;&#160;&#160; datatype: function(){</p>
<p>var temp = jQuery(&#8221;#list2&#8243;);<br />&#160;&#160;&#160; temp[0].addJSONData(eval(&#8221;(&#8221;+response+&#8221;)&#8221;));</p>
<p>},<br />&#160;&#160;&#160; colNames:["id","Name"],</p>
<p>&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"id",index:"id", width:30},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"name",index:"name", width:150},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160; ],</p>
<p>...</p>
<p>});</p>
]]></description>
        	        	<pubDate>Fri, 10 Jul 2009 07:43:51 +0300</pubDate>
        </item>
        <item>
        	<title>riverguardian on AddJSONData not working? (find the errror!)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/addjsondata-not-working-find-the-errror#p7741</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/addjsondata-not-working-find-the-errror#p7741</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;m using jqGrid 3.5. Can someone point out the error here (see live at <a href="http://rioleo.org/dev/grid2/" rel="nofollow" target="_blank">http://rioleo.org/dev/grid2/</a>)</p>
<p>&#60;script type=&#8221;text/javascript&#8221;&#62;<br />$(document).ready(function(){</p>
<p>var response = &#8220;[{&#39;id&#39;:&#39;5&#39;,&#39;name&#39;:&#39;john smith&#39;}]&#8220;;</p>
<p>jQuery(&#8221;#list2&#8243;).jqGrid({<br />&#160;&#160;&#160; datatype: &#8220;json&#8221;,<br />&#160;&#160;&#160; colNames:["id","Name"],</p>
<p>&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"id",index:"id", width:30},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"name",index:"name", width:150},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160; caption: &#8220;&#8221;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160; height: &#8220;auto&#8221;,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; root: &#8220;rows&#8221;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; page: &#8220;page&#8221;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; total: &#8220;total&#8221;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; records: &#8220;records&#8221;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; cell: &#8220;&#8221;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; id: &#8220;id&#8221;} <br />&#160;&#160;&#160; });<br />&#160;&#160;&#160; var temp = jQuery(&#8221;#list2&#8243;);<br />&#160;&#160;&#160; temp[0].addJSONData(eval(&#8221;(&#8221;+response+&#8221;)&#8221;));<br />});</p>
<p>&#60;/script&#62;<br />&#60;/head&#62;</p>
<p>&#60;body&#62;<br />&#60;!&#8211; the grid definition in html is a table tag with class &#39;scroll&#39; &#8211;&#62;<br />&#60;table id=&#8221;list2&#8243; class=&#8221;scroll&#8221; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243;&#62;&#60;/table&#62;</p>
</p>
<p>Thank you!</p>
<p>Note there isn&#39;t an error with any of the jQuery or jQGrid js files. The demo worked when using a url to return JSON data.</p>
]]></description>
        	        	<pubDate>Thu, 09 Jul 2009 14:03:17 +0300</pubDate>
        </item>
</channel>
</rss>