<?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: TreeGrid with local Data</title>
	<link>http://www.trirand.com/blog/?page_id=393/treegrid/treegrid-with-local-data-1</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/treegrid/treegrid-with-local-data-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Klaus on TreeGrid with local Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/treegrid-with-local-data-1#p23917</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/treegrid-with-local-data-1#p23917</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m looking for an easy and efficient way to add local data to a treegrid.</p>
<p>The only working possibility I found was adding every node with the following method call:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1630' value='Select Code' data-codeid='sfcode1630' /></p>
<div class='sfcode' id='sfcode1630'>mygrid.jqGrid(&#34;addChildNode&#34;, nodeid, parentid, rowdata);</div>
</p>
<p>Is there another function to add a full dataset (JSON data structure - similar to the data normally received from server)?</p>
<p>The following methods did NOT work:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit710' value='Select Code' data-codeid='sfcode710' /></p>
<div class='sfcode' id='sfcode710'>mygrid.jqGrid(&#34;addRowData&#34;, &#34;id&#34;, data);<br />mygrid.jqGrid(&#34;addJSONData&#34;, rows);</div>
<p>My Settings are: (and I&#39;m currently using jqGrid ver. 4.0)</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3299' value='Select Code' data-codeid='sfcode3299' /></p>
<div class='sfcode' id='sfcode3299'>&#160; gridview: false,<br />&#160; treeGrid: true,<br />&#160; treeGridModel: &#34;adjacency&#34;,<br />&#160; treeReader: {<br />&#160;&#160;&#160;&#160; level_field: &#34;level&#34;,<br />&#160;&#160;&#160;&#160; parent_id_field: &#34;parent&#34;,<br />&#160;&#160;&#160;&#160; leaf_field: &#34;isLeaf&#34;,<br />&#160;&#160;&#160;&#160; expanded_field: &#34;expanded&#34;<br />&#160;&#160; }</div>
</p>
<p>Kind regards,</p>
<p>Klaus.</p>
]]></description>
        	        	<pubDate>Fri, 08 Jul 2011 16:47:12 +0300</pubDate>
        </item>
</channel>
</rss>