Hi!
I'm using the ContextMenuUltra on ultraToolbarsManager property to thow a ContextMenu by right-clicking one of the items. Therfore a PopMenuTool was created.
But I have more than one group (Style-property set to ExplorerBar) with different "Item-types" (e.g. employees, facilities) and I want to show different ContextMenus dependent on the "Item-types".
I tried to use _ContextMenuInitializing, but this event is not fired!
Thank you very much for your help.
Best regards Tom
No furhter questions, thanks and please close.
Best regards.
Tom
Hi Tom,
I'm glad that my solution worked.
If you don't have any further questions, may I close this case?
Regards,
Ammar
Hello Ammar,
thank you very much, it works fine!
Summary:
Not set the "ContextMenuUltra on ultraToolbarsmanager" property in design time,
handling the ExplorerBar_ContextMenuInitializing event,
evaluate a property of parameter e (for example e.Item.Group.Key),
and show a PopupMenu with .ShowPopup() method of the ultraToolbarsManger.
I was able to see the behavior you described and created a simple sample application to reproduce this behavior. (I am attaching this sample application here for your reference)
I noticed that when the ContextMenuUltra is set in Design time the event does not fire. So to solve this issue you just need to clear that event in Design time and just handle the “ContextMenuInitializing” event on the UltraExplorerBar as in my sample.
Please let me know how this work for you.
Regards