I have a tree as in the image attached.
I am trying to retrieve the children of the
Main Node, using this
$('#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.