Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
345
Different ContextMenu(s) in different WinExplorerBar groups
posted

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

Parents
  • 6729
    Verified Answer
    Offline posted

    Hi Tom,

    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

    Ammar

    ExplorerBarSample.zip
Reply Children