<?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: nodeGetChildren always returns 0 entries</title>
	<link>http://www.trirand.com/blog/?page_id=393/treegrid/nodegetchildren-always-returns-0-entries</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/nodegetchildren-always-returns-0-entries/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>revg on nodeGetChildren always returns 0 entries</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/nodegetchildren-always-returns-0-entries#p23745</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/nodegetchildren-always-returns-0-entries#p23745</guid>
        	        	<description><![CDATA[<p>ok, so I went ahead and did some debugging and I figured out a work around.</p>
<p>It appears that the jqgrid source code is looking for a field on the record that is passed into getNodeChildren that is called <strong>_id_</strong>. So I just added a hidden column to my tree grid called <strong>_id_</strong>&#160;and put the nodeid or primary key in there and now the function works.</p>
</p>
<p>Cheers,</p>
<p>Greg</p>
]]></description>
        	        	<pubDate>Fri, 24 Jun 2011 16:11:15 +0300</pubDate>
        </item>
        <item>
        	<title>revg on nodeGetChildren always returns 0 entries</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/nodegetchildren-always-returns-0-entries#p23739</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/nodegetchildren-always-returns-0-entries#p23739</guid>
        	        	<description><![CDATA[<p>I have a jqgrid 4.0.0 tree setup to load all at once using xml. The tree loads and works perfectly. The problem is that I am trying to get all of the children that belong to the root node as follows, but the children array is always empty. I have doubled checked the row variable and it is correct.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9060' value='Select Code' data-codeid='sfcode9060' /></p>
<div class='sfcode' id='sfcode9060'>
<p>var row = $(&#39;#permissionlist&#39;).getRowData(rowid);</p>
<p>var children= $(&#39;#permissionlist&#39;).getNodeChildren(row);</p>
<p>alert(children.length);</p>
</div>
<p>I can use the getNodeParent, getNodeDepth, and getNodeAncestors just fine. Is anyone else experiencing this problem as well or is it just something with my code?</p>
</p>
<p>Thanks,</p>
<p>Greg</p>
]]></description>
        	        	<pubDate>Fri, 24 Jun 2011 03:17:06 +0300</pubDate>
        </item>
</channel>
</rss>