Treeview : How to save a new folder in Database

2 posts, 0 answers
  1. David
    David avatar
    2 posts
    Member since:
    Jun 2012

    Posted 16 Aug 2012 Link to this post

    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.
  2. David
    David avatar
    2 posts
    Member since:
    Jun 2012

    Posted 17 Aug 2012 Link to this post

    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();    
    }
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top