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: 2017.3.1018.40 (2017.3.1018.40)
Syntax
public event EventHandler<RadTreeViewItemPreparedEventArgs> ItemPrepared

Value

Type: SystemEventHandlerRadTreeViewItemPreparedEventArgs
Remarks
Use it to perform binding of RadTreeViewItem properties to the data objects.
Examples
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