Help please...

Hi, I allow the user to add the nodes programatically and I also want to force the user to give new name for the added nodes. I have added the nodes but I am not able to accomplish the later requirement i.e., forcing the user to give new name to the added nodes. Please help me to sort out this problem. Thanks and Regards, Carl

2 Replies

DT Deepa TS Syncfusion Team April 12, 2006 12:50 PM UTC

Hi Carl, The TreeViewAdv BeginEdit method plays an important role in forcing the user to give a new name for the nodes that are added programmatically. Code: private void button1_Click(object sender, System.EventArgs e) { TreeNodeAdv node=new TreeNodeAdv(); node.Text="Child"; this.treeViewAdv1.Nodes[0].Nodes.Add(node); this.treeViewAdv1.SelectedNode=node; //Force the user to edit the node after adding this.treeViewAdv1.BeginEdit(); } Please take a look at the attached sample and let me know if this helps you. Thanks for your interest in Syncfusion products. Regards, Deepa.

ForceEditNode.zip


AD Administrator Syncfusion Team June 6, 2006 10:50 AM UTC

Begin edit method worked Deepa. Thanks

Loader.
Up arrow icon