New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

NodeEdit

The NodeEdit event fires when the user clicks the Enter key after editing a Node. The RadTreeNodeEditEventArgs passed to the event handler provides a reference to the edited Node and a Text property. Set the AllowNodeEditing property of RadTreeView to enable editing. Edited nodes do not automatically persist user changes.

In the example below the "old" text is represented by e.Node.Text and the "new" text entered by the user as e.Text. The new text is assigned to the Node.

protected void RadTreeView1_NodeEdit(object sender, Telerik.Web.UI.RadTreeNodeEditEventArgs e)
{    
    e.Node.Text = e.Text;
}
Protected Sub RadTreeView1_NodeEdit(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEditEventArgs)
    e.Node.Text = e.Text
End Sub

See Also

In this article