Modifying the Default Context Menu
The default RadGridView context menu can be customized in the ContextMenuOpening event handler.
Removing an item from default RadGridView context menu:
In order to remove an item, you need to make a loop iterating the e.ContextMenu.Items and check if the e.ContextMenu.Items[index].Text is equal to the text of the menu item that you want to hide. If so, just set the Visibility of the menu item to Collapsed:
If your grid is localized you can get the item text from the localization provider - `if (e.ContextMenu.Items[i].Text == RadGridLocalizationProvider.CurrentProvider.GetLocalizedString(RadGridStringId.ConditionalFormattingMenuItem))'
Adding menu items to the default RadGridView context menu
In order to add custom menu items to the default context menu, you should create menu item instances in the ContextMenuOpening event handler and add them to the e.ContextMenu.Items:
You can subscribe to the Click event of the newly added menu items and thus execute the desired action when a RadMenuItem is clicked.
The result of combining the approaches from this article is shown on the screenshot below: