New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

ContextMenuItemClick

ContextMenuItemClick event fires when the user right clicks on a node that have associated context menu and clicks on a context menu item. Use the RadTreeViewContextMenuEventArgs.MenuItem property to get or set the clicked-on menu item properties. Use the RadTreeViewContextMenuEventArgs.Node property to get or set the clicked-on Node properties.

C#
protected void RadTreeView1_ContextMenuItemClick(object sender, Telerik.Web.UI.RadTreeViewContextMenuEventArgs e)
{
    if (e.MenuItem.Text == "Delete" && e.Node.Category == "File")
    {
        e.Node.Remove();
    }
} 		
Not finding the help you need?
Contact Support