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

SelectAction RadTreeNode

1 Answer 68 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
IT Support
Top achievements
Rank 1
IT Support asked on 29 Apr 2010, 02:43 PM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Apr 2010, 06:55 AM

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.

Tags
TreeView
Asked by
IT Support
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or