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

ContextMenu in treeview

1 Answer 84 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Wajih
Top achievements
Rank 2
Wajih asked on 24 Feb 2011, 08:37 AM
Hi,

In treeview i need contextmenus option for that i was refering to this url :
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx

what i need is when i right click on treenode i should get contextmenus with option New
so when i select new node that node should get added in treeview as well as in database.
what is heppening now is when i say new it is creating new node with text as new and it is keeping this text is edit mode so that user can change that name. for that they are using one javascript function to set editable , now after user enters node name then i want to insert this data in database. on which event of treeview can i do this.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Feb 2011, 12:45 PM
Hello,


I hope you can use "NodeEdit" event for RadTreeView which fires when user clicks the Enter key after editing a Node.

Another option is attaching "OnClientNodeEdited" client event and invoking ajaxRequest() to server to update db.



-Shinu.
Tags
TreeView
Asked by
Wajih
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or