<?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: How does addJSONData() work?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-does-addjsondata-work</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/how-does-addjsondata-work/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>riverguardian on How does addJSONData() work?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-does-addjsondata-work#p7742</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-does-addjsondata-work#p7742</guid>
        	        	<description><![CDATA[<p>I have not been able to demonstrate this to work.</p>
]]></description>
        	        	<pubDate>Thu, 09 Jul 2009 15:24:18 +0300</pubDate>
        </item>
        <item>
        	<title>tony on How does addJSONData() work?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-does-addjsondata-work#p6011</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-does-addjsondata-work#p6011</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p><strong> temp[0].addJSONData(eval("("+response+")");</strong></p>
<p>And if you call trigger("reloadGrid") after this oper you will lost yor data, since the data is first loaded via addJSONData and the the grid is reloaded again.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 14 Apr 2009 03:33:59 +0300</pubDate>
        </item>
        <item>
        	<title>coolkay on How does addJSONData() work?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-does-addjsondata-work#p5972</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-does-addjsondata-work#p5972</guid>
        	        	<description><![CDATA[<p>&#160;&#160;&#160; var response = "[{&#39;id&#39;:&#39;5&#39;,&#39;name&#39;:&#39;john smith&#39;}]";</p>
<p>&#160;&#160;&#160; jQuery("#gvCustomers").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;id&#39;,&#39;Name&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;,index:&#39;id&#39;, width:30},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;name&#39;,index:&#39;name&#39;, width:150},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39; &#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: "auto"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ,jsonReader:{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: "rows",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "page",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "total",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "records",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cell: "",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "0"}&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160; var temp = jQuery("#gvCustomers");<br />&#160;&#160;&#160; if (temp == null) <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;null&#39;);<br />&#160;&#160;&#160; else<br />&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //alert(response);<br /><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160; temp[0].addJSONData(response);<br /></strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#gvPhoneNumbers").trigger("reloadGrid");&#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>This does NOT add records to the grid! Why?</p>
]]></description>
        	        	<pubDate>Mon, 13 Apr 2009 11:15:32 +0300</pubDate>
        </item>
</channel>
</rss>