Enable TreeView Edit Mode

5 posts, 1 answers
  1. Marcio Nascimento
    Marcio Nascimento avatar
    54 posts
    Member since:
    Jul 2009

    Posted 10 Apr 2011 Link to this post

    Hi There!

    I just need some help here. What I am trying to do is quite simple.
    I'm using RadTreeView and context menus. When I click to "Add" a new node, I want to be able to enable edit mode on the node instantly to rename it.
    Is it possible ?

    Appreciate any help from you guys!

    Regards,

    Marcio Nascimento
  2. Answer
    Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 11 Apr 2011 Link to this post

    Hi Marcio Nascimento,

    Please take a look at this demo for an example. Choose "New Folder" from the context menu and a new node will be created and right after the creation the node is in edit mode.

    All the best,
    Veronica Milcheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marcio Nascimento
    Marcio Nascimento avatar
    54 posts
    Member since:
    Jul 2009

    Posted 13 Apr 2011 Link to this post

    Thanks Veronica!
    That's really a full example!

    Regards,

    Marcio Nascimento
  5. Ted
    Ted avatar
    47 posts
    Member since:
    Jan 2008

    Posted 29 Jun 2011 Link to this post

    is there a way to make the node text editable if you are also calling an ajax postback on the OnClientNodeClick?
    function NodeClicked(sender, e) {
                var radManager;
                var node = e.get_node(); // gets a RadTreeNode object
                if (node != null) {
                    //Get reference to RadAjaxManager on page    
                    if (radManager == null)
                        radManager = $find('<%= RadAjaxManager.GetCurrent(this).ClientID %>');
                        clickedNodeID=e.get_node().get_value()
                    //Fire ajax request (optionally pass an event arg value)    
                    radManager.ajaxRequest("NodeClicked|"+e.get_node().get_value());
                }
            }
  6. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 04 Jul 2011 Link to this post

    Hello Ted,

    Yes, it is possible however I suggest you to use the OnClientNodeClicking event instead of OnClientNodeClicked.

    Please let me know if you have further questions.

    Greetings,
    Veronica Milcheva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017