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

Treeview : How to save a new folder in Database

1 Answer 42 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 16 Aug 2012, 05:55 PM
Hi everyone,

I have a "radtreeview" containing a contexmenu authorizing the user to create a new folder. I used th following example :
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx 

When we click on the "create folder" item, the treeview allow us to edit it, I would like to save the name of this new node in my db. So I tried to put my methods of saving in the treeview event "OnNodeEdit", but it does not pass by this event.

My question is thus the following one: on what server side event may I introduce my saving?

Thx a lot.

1 Answer, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 17 Aug 2012, 12:16 PM
Ok I found the solution re-reading this post :
http://www.telerik.com/community/forums/aspnet-ajax/treeview/add-new-node-context-menu---capture-text.aspx 

my problem was i did not make !IsPostBack in my page_load :

if (!IsPostBack)
{
	PopulateTreeview();    
}
Tags
TreeView
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Share this question
or