ContextMenu Items Click events not fired

Closed
0
0

Hello!

We are working on an application that is converted from a Windows Forms application; the UI functionality works amazingly good so far! But the following issue just came up:

We have a User Control with a ContextMenu ; this User Control is added to the main Window dynamically at runtime. The context menu shows up fine on mouse right click, but the Click events of the menu items are not fired when these are clicked.

I tried adding a new menu item with a fresh event handler; no success. Also, the MenuItemClicked event of the context menu isn’t fired too

I furthermore tried it in a separate, fresh application with the user control, added dynamically to a main window; here it works fine.

Any suggestion what I could check to pinpoint the cause of this issue?

We are using Wisej 3.5.17

Thanks a lot!

EDIT: Issue seems to be fixed now! In the Output window of VS, I found a message “Blocked execution on Wisej.Web.DataGridView because it’s not visible.” which led me to check the DataGridViews on the mentioned User Control; and indeed, the Context menu was assigned to one of them and the grid was actually not visible (it’s a quite non-trivial, dynamic  UI). The assignment of the context menu to the grid is actually unnecessary; after removing the context menu from the grid, it works like a charm!

  • You must to post comments
0
0

Glad you were able to resolve the issue!

Julie

  • You must to post comments
Showing 1 result