New to Telerik UI for WinForms? Start a free 30-day trial
Context Menu
Updated over 6 months ago
Similar to Windows FileExplorer, the Telerik ExplorerControl also shows the standard Windows context menu:

You cannot modify files/folders context menu but you can choose to cancel its opening or modify the empty space context menu items.
The ShellContextMenuOpening event occurs when the context menu is about to open. You can use it to cancel the menu opening or to add/remove options from the short menu (the one opened when the cursor is on an empty space in the explorer).
Modify ShellContextMenu
C#
private void RadForm_Load(object sender, EventArgs e)
{
RadOpenFolderDialog openFolderDialog = new RadOpenFolderDialog();
openFolderDialog.OpenFolderDialogForm.ExplorerControl.ShellContextMenuOpening += ExplorerControl_ShellContextMenuOpening;
}
private void ExplorerControl_ShellContextMenuOpening(object sender, Telerik.WinControls.FileDialogs.ContextMenuOpeningEventArgs e)
{
e.Cancel = true;
if (e.IsOpeningOnEmptySpace)
{
e.Cancel = false;
e.ShortContextMenuOptions = ShortContextMenuOptions.NewFolder | ShortContextMenuOptions.View;
}
}