We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

select the newly added tree node child

Is there a way to select the newly add child node besides looping thru all the children of the parent node & look for a node with text = TreeNodeAdv? Since the newly add child node will always be at the end of the list & has an index of parentNode.nodecount -1, is there a way to use this index info to select the new child?

3 Replies

AD Administrator Syncfusion Team July 8, 2005 07:20 PM UTC

Hi Tiff, If you keep a reference to the Node when you add it, you should just be able to set the SelectedNode property of the TreeViewAdv to that reference. Regards, Gregory Austin Syncfusion Inc.


TI Tiff July 8, 2005 09:05 PM UTC

thanx I actually have another question though. Is there a way for you undo changes you made to a tree?


AD Administrator Syncfusion Team July 13, 2005 03:05 PM UTC

Hi Tiff, Unfortunately, I am not aware of any built-in Undo/Redo functionality in the TreeViewAdv. This would be something you would need to implement yourself. Regards, Gregory Austin Syncfusion Inc.

Loader.
Live Chat Icon For mobile
Up arrow icon