Telerik RadTreeView supports client-side Node Editing. You can simply select a node and press F2 (or click an already selected node) and you'll be able to edit the node text client-side.

In order to do that, you need to set the AllowNodeEditing property of Telerik RadTreeView to true.
| |
Copy Code |
|
<rad:RadTreeView ID="RadTree1" runat="server" Height="300px" AllowNodeEditing="True" OnNodeEdit= "HandleNodeEdit" ImagesBaseDir="~/Img/WindowsXP" ContentFile="~/Examples/Functionality/NodeEditing/tree.xml"/> |
If the text of the node has been changed, the NodeEdit event fires, acceptings EventsArgs of type RadTreeNodeEvents args. The node edited is RadTreeNodeEventArgs. NodeEdited, the new text value is in RadTreeNodeEventArgs.NewText. Telerik RadTreeView does not automatically change the node text, so you'll need to do that in your event handler (if you want to).
| C# |
Copy Code |
|
protected void HandleNodeEdit(object sender, RadTreeNodeEventArgs NodeEvents) { RadTreeNode nodeEdited = NodeEvents.NodeEdited; string newText = NodeEvents.NewText;
nodeEdited.Text = newText; } |
| VB.NET |
Copy Code |
|
Protected Sub HandleNodeEdit(sender As Object, NodeEvents As RadTreeNodeEventArgs) Dim nodeEdited As RadTreeNode = NodeEvents.NodeEdited Dim newText As String = NodeEvents.NewText
nodeEdited.Text = newText End Sub
|