View Full Version : Tree selection node

10 May 2011, 12:58 AM
I've to select some nodes from a tree.
By now I use this code:

var node = MyTree.getNodeById(MyNodeId);
MyTree.getSelectionModel().select(node, this, true);

into a for statement which cycles on the set of nodes to select.
The problem is that this code expands all the nodes at the same hierarchy level.
I would expand just the selected node to view only this node and the path from root to it (without the "brother nodes").
Is it possible?....thanks a lot