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
20
maintain same top node in Ultra Tree view after repopulate
posted

Hello All experts,

Need your help. I have ultra treeview with nodes and i am repopulating it with  display text value changed (initiated by button click on the form) . But as i am repopulating and expanding all,so not able to maintain the same top node which was there earlier before clicking the button to change the display text of nodes.

Thanks in advance.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    The tree control has a TopNode property. So you simply set this to the node you want to appear at the top.

    Of course, if you remove all of the old nodes and replace them with new nodes, the old node will no longer be in the tree, so setting it as the TopNode will not work. You need to somehow find the new node in the tree which matches the old TopNode and set it as your ne TopNode.

Children
No Data