Title: getChildren for Tree node Post by: leela on July 23, 2014, 03:18:34 PM I have a tree as in the image attached.
I am trying to retrieve the children of the Main Node, using this Code: $('#menuTree').tree('getChildren', parent.target); It actually returns an array of 5 objects instead of 2. I expected it to return only Master Entities and Admin nodes But it is returning Master Entities, Admin, User, Screen and City User, Screen and City are not children of Main, but the Master Entities. Not sure why it is returning all of them. Appreciate any help. Title: Re: getChildren for Tree node Post by: stworthy on July 23, 2014, 05:11:00 PM Please try using 'getData' or 'getNode' instead.
Code: var t = $('#menuTree'); Title: Re: getChildren for Tree node Post by: iceh on August 12, 2014, 12:36:40 AM Hi,
I can confirm the "getData" works. In previous versions "getChildren" was ok, too. |