Hi,
I have several parent nodes, and what I would like to do is be able to multi select the parent nodes and the child nodes in such a way that only one node under a parent or the parent can be selected.
For instance, suppose I have this example:
Parent1
- Child1
- Child2
Parent2
- Child1
- Child2
- Child3
Parent3
- Child1
I would like to be able to start off with all the Parent nodes selected, and then be able to do any combination thereafter by only having one node from each parent selected at any time.
I have tried Canceling the selection event in the SelectedNodeChanging handler (by removing the event handler, then programatically setting the selected nodes, and finally adding the handler back) however the tree view does not refresh.
Is there perhaps a built in way of achieving this or am I going about it all wrong?
Thanks,
I have several parent nodes, and what I would like to do is be able to multi select the parent nodes and the child nodes in such a way that only one node under a parent or the parent can be selected.
For instance, suppose I have this example:
Parent1
- Child1
- Child2
Parent2
- Child1
- Child2
- Child3
Parent3
- Child1
I would like to be able to start off with all the Parent nodes selected, and then be able to do any combination thereafter by only having one node from each parent selected at any time.
I have tried Canceling the selection event in the SelectedNodeChanging handler (by removing the event handler, then programatically setting the selected nodes, and finally adding the handler back) however the tree view does not refresh.
Is there perhaps a built in way of achieving this or am I going about it all wrong?
Thanks,