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
60
Multiply select in the tree
posted

I select two nodes in the tree with the "infragistics.win.ultrawintree.ultratree"

I want to fetch the selected nodes, and I use the below code:

// Here the length is 0, Why??

if(Tree.SelectedNodes.Length >0){

}

Could you give me the code about the "Ultratree.cs"

Parents
No Data
Reply
  • 6120
    Offline posted

    Hello Jeffrey,

    After you select the nodes in an UltraTree they get added to the selected nodes collection of the Tree. You can access them like this:

    Infragistics.Win.UltraWinTree.UltraTree tree
    Tree.SelectedNodes

    After looking at your code snippet, I assumed that you want to check the Count of the selected nodes and this can be done using the tree.SelectedNodes.Count property.

    Please let me know if you have any questions.

    Sincerely,
    Sahaja Kokkalagadda
    Associate Software Developer

Children