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


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.

protected void RadTreeView1_ContextMenuItemClick(object sender, Telerik.Web.UI.RadTreeViewContextMenuEventArgs e)
    if (e.MenuItem.Text == "Delete" && e.Node.Category == "File")
Protected Sub RadTreeView1_ContextMenuItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeViewContextMenuEventArgs)
    If e.MenuItem.Text = "Delete" AndAlso e.Node.Category = "File" Then
    End If
End Sub
In this article