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

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 02:20 PM

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 04:05 PM

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 10:05 AM

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