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

Need the nodes to expand automatically

Hi, When I try to add a child node to a collapsed node, its not getting expanded automatically. I need the nodes to get expanded automatically for renaming the newly added node. Is this possible?!! Thanks, Prakash

1 Reply

DT Deepa TS Syncfusion Team March 30, 2006 02:21 PM UTC

Hi Prakash, While adding child node to a collpased node,the nodes can be expanded by using the following code.It helps to check if the selected node is expanded.If not, it expands the node before editing. //expands the node before editing if (this.treeViewAdv1.SelectedNode.Expanded == false) { this.treeViewAdv1.SelectedNode.ExpandAll(); } Please take a look at the attached sample and let me know if this helps you. Regards, Deepa.

TreeNodeEdit.zip

Loader.
Live Chat Icon For mobile
Up arrow icon