This is a migrated thread and some comments may be shown as answers.

Tree View- Context Menu:Folder Creation Edit Mode Help needed

2 Answers 77 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Vinoth
Top achievements
Rank 1
Vinoth asked on 29 Nov 2011, 04:48 PM
Hi,
   I have small problem and expecting solutions from Experts.
I'm trying to use this link as reference
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx

When user creates a folder in to tree view using Context menu, same folder should be created in server side. Here Problem is, when user creates a new folder it directly goes to Edit mode. when user changes name from New Folder to some name <Name> then i have to track that change and the same change i have to apply at server side folder also. so that Folders which are listed in to Client side and folders in server side will be in sync.

Thank you so much in advance for whoever solves my problem. :)

2 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 30 Nov 2011, 03:10 PM
Hello Vinoth,

To save the new name to the server, you just have to subscribe to the OnNodeEdit server-side event of the TreeView, as shown in the example:

protected void RadTreeView1_NodeEdit(object sender, RadTreeNodeEditEventArgs e)
{
    RadTreeNode edited = e.Node;
    edited.Text = e.Text.ToString();
}
Best wishes,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Vinoth
Top achievements
Rank 1
answered on 30 Nov 2011, 04:11 PM
Thank you Bozhidar
Tags
TreeView
Asked by
Vinoth
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Vinoth
Top achievements
Rank 1
Share this question
or