I have implemented the ContextMenu as per the documentation and when I click on the on my Radzen control the ShowContextMenuWithItems
method successfully get's called.
void ShowContextMenuWithItems(MouseEventArgs args)
{
_contextMenuService.Open(args,
new List<ContextMenuItem> {
new ContextMenuItem(){ Text = "Context menu item 1", Value = 1 },
new ContextMenuItem(){ Text = "Context menu item 2", Value = 2 },
new ContextMenuItem(){ Text = "Context menu item 3", Value = 3 },
}, OnMenuItemClick);
}
void OnMenuItemClick(MenuItemEventArgs args) {... }
However nothing is displayed when _contextMenuService.Open(...)
is called. And OnMenuItemClick(...)
is not invoked either.
There are no errors displayed in the EventConsole.
Is there something specific I need to do to ensure the ContextMenu is visible, or something I need to check that might be preventing it from being displayed?