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

[Solved] Edit Node with Button

1 Answer 136 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
bdk0172
Top achievements
Rank 1
bdk0172 asked on 06 Mar 2008, 02:37 PM
I've been able to add and delete nodes by attaching them to button click events, but I'm having an issue trying to figure out how to edit a node with a button click event.  I want this to happen on the button click because I want clicking on the node itself to fire a different event.  What is the easiest/cleanest way to do this?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 06 Mar 2008, 03:51 PM
Hi Brian,

You can use the startEdit() method of a node.

Consider the following example:

var tree = $find("<%= RadTreeView1.ClientID %>"); 
var node = tree.findNodeByText("RadTreeNode 2"); 
node.startEdit(); 

More about the RadTreeNode client side object can be found on the online help here:
Controls > RadTreeView > Client-Side Programming > The RadTreeNode


I hope this helps.

Kind regards,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
bdk0172
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or