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.
Up arrow icon