Hi,
I want to implement a lock feature on the treeview. If the tree is locked I do not want the tree to bring into view the selected item. It seems to be the default behavior of the tree to expand to the selected node if only one of the nodes in the path to the node is collapsed. It does not happen if the node is not already loaded or if there are 2 or more nodes in the path that are collapsed.
For e.g.
I load the tree and navigate to the path 0|1|1|2
I then collapse to 0|1 and lock the tree.
When I select 0|1|1|2 programatically, the tree automatically expands to show 0|1|1|2 selected and brings it into view.
Is there a way to disable this behavior? I want the tree to stay at 0|1 level. I also want the node 0|1|1|2 to be selected. (So that when I interactively expand via GUI to 0|1|1|2 it will show up selected.)
Thanks,
Jiti
I want to implement a lock feature on the treeview. If the tree is locked I do not want the tree to bring into view the selected item. It seems to be the default behavior of the tree to expand to the selected node if only one of the nodes in the path to the node is collapsed. It does not happen if the node is not already loaded or if there are 2 or more nodes in the path that are collapsed.
For e.g.
I load the tree and navigate to the path 0|1|1|2
I then collapse to 0|1 and lock the tree.
When I select 0|1|1|2 programatically, the tree automatically expands to show 0|1|1|2 selected and brings it into view.
Is there a way to disable this behavior? I want the tree to stay at 0|1 level. I also want the node 0|1|1|2 to be selected. (So that when I interactively expand via GUI to 0|1|1|2 it will show up selected.)
Thanks,
Jiti