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
555
Select treenode programmatically
posted

In our application using the ultratree control we should be able not only to activate but select a treenode programmatically

I tried the simple snippet

treenode.Actived= true; >> ok

treenode.Selected = true; >> nok !

tree.ActiveNode.Selected = true; >> also nok ?


 

As if it where impossible to do it like this ???

 

Any idea

Thanks Kagel

 

Parents
No Data
Reply
  • 555
    posted

    Hi Georgi/Mike,

     

    thank that was already helpful:

    nod.Selected = true; does nothing (nod is still unselected)

    whereas tree.SelecteNode.AddRange(new List<UltraTreeNode>() {nod }); sets the specific nod.Selected = true;

     

    Best regards

    Kagel 

Children
No Data