Click or drag to resize
RadTreeViewItemPrepared Event
Occurs when a child RadTreeViewItem has been prepared and is ready for use.

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Navigation (in Telerik.Windows.Controls.Navigation.dll) Version: 2018.1.220.40 (2018.1.220.40)
public event EventHandler<RadTreeViewItemPreparedEventArgs> ItemPrepared


Type: SystemEventHandlerRadTreeViewItemPreparedEventArgs
Use it to perform binding of RadTreeViewItem properties to the data objects.
Following code fragment shows the basic usage.
void RadTreeView1_ItemPrepared(object sender, RadTreeViewItemPreparedEventArgs e)
    // get a reference to the item that has been selected
    RadTreeViewItem preparedItem = e.PreparedItem as RadTreeViewItem;

    // do something with this item
    preparedItem.IsSelected = (preparedItem.Item is MyCustomBussinesObject);
See Also