Click or drag to resize
RadTreeViewPreviewEdited Event
Occurs before a TreeView item to accept the new Edited data.

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Navigation (in Telerik.Windows.Controls.Navigation.dll) Version: 2018.2.515.40 (2018.2.515.40)
Syntax
public event RadTreeViewItemEditedEventHandler PreviewEdited

Value

Type: Telerik.Windows.ControlsRadTreeViewItemEditedEventHandler
Examples
Following code fragment shows the basic usage.
void private void RadTreeView1_PreviewEdited(object sender, RadTreeViewItemEditedEventArgs e)
{
    // get a reference to the item that is being edited
    RadTreeViewItem editedItem = e.Source as RadTreeViewItem;

    string newText = e.NewText;
    string oldText = e.OldText;

    // get a reference to the RadTreeView
    RadTreeView treeView = (sender as RadTreeView);

    // if the action should be canceled set Handled property to true
    e.Handled = true;
}
See Also