SelectAction RadTreeNode

2 posts, 0 answers
  1. IT Support
    IT Support avatar
    4 posts
    Member since:
    Mar 2010

    Posted 29 Apr 2010 Link to this post

    Hello,

    the TreeNode ASP.NET has a property called SelectAction which allows to set the action to be made when the node is clicked.

    is there something similar with the RadTreeNode?

    thx

    Gilles
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Apr 2010 Link to this post

    Hi Gilles,

    You can easily customize the action when clicking the node, by attaching the 'OnClientNodeClicked' event to RadTreeView. For example the following client code shows how to expand/collapse the node when clicking the node.

    JavaScript:

     
        function OnClientNodeClicked(sender, args) {  
            args.get_node().set_expanded(!args.get_node().get_expanded());  
        } 

    Hope this would help you in achieving desired.

    Shinu.

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