Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
Multi Select nodes on criteria in UltraWinTree
posted

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

Parents
  • 48586
    Verified Answer
    posted

    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.

    96274.zip
Reply Children