Hi,
 Is there any way to get the parent item of a node in a tree when the
node is closed. The method tree.getParentItem (node) returns the
parent based on the current state of the tree (open/close). If the
node is not visible in the current state of tree this method returns null.

The thing is that I am displaying the leaf level nodes of the tree in
another list where a user can select/ deselect them. In the other list
I only have reference to the leaf level nodes of my tree and based on
user's changes to the leaf level nodes I want to modify the original
tree ( / parent of the nodes he changed).

I tried using the expandItem method so that once the tree is expanded
I could get the parent. But looks like expandItem only works for non
leaf nodes. Please let me know on how to go about it.

Regards,
Gaurav

Reply via email to