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"
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 treeTree.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 KokkalagaddaAssociate Software Developer
In our code, this node style is set "Infragistics.Win.UltraWinTree.NodeStyle.CheckBoxTriState;"
And if I choose this checkbox, the tree.selectedNodes is empty.