Hi,
I have a requirement in which I need to enable user to select multiple nodes using ctrl key on the tree based on a criteria (node type). Overriding the SelectionType = Extended and SelectionBeavior = ExtendedAcrossCollections would enable me to select nodes of any type.
If my tree is modelled like below, I want to enable Ctrl+Selection only on nodes B1, B2, B3 and D1, D2, D3. Anywhere else the Ctrl+selection should function as select single node. Let me know if this behavior can be achieved?
A (root)
B(child)
B1, B2, B3 (children of B)
C (Child)
C1, C2, C3
D (Child)
D1, D2, D3
Hello ,
Nodes collection of Node object has Override property, which you could adjust in order to manage selection type of this collection. For example you could set
ultraTree1.GetNodeByKey("B").Nodes.Override.SelectionType = Infragistics.Win.UltraWinTree.SelectType.Extended;
And then child nodes of B node will be multiselected. Please see attached sample.
Please let me know if you have any further questions.
This is perfect sample doing half of my requirement. Can you please let me know if I can select nodes across collections? I want to have multi-select across B & D too, i.e B1 and D1 to be selected.
I tried UltraTree.SelectionBehavior to be extended across collection, but that seems to select multiple nodes of "C". Let me know if I can try anything else?
Thanks,
Chandrakant.