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
105
Context Menu events
posted

I am trying to set a flag when the context menu is being displayed on a grid and a treeview to try and prevent other events from firing on those controls and then revert the flag once the context menu has closed.

 

I cannot immediatly see an event on the UltraToolbarManager or the UltraGrid or UltraTree that will allow me to do this, but I may be missing something.

Thanks in advance for any help.

Sean

  • 71886
    Offline posted

    Hello Sean,

    For the 'UltraToolbarsManager' you could handle the 'BeforeToolbarListDropdown' event. For the other two controls you mentioned, you could handle the 'ControlAdded' event to capture the textbox which is being added to the cell in edit mode and then subscribe to the 'MouseDown' event of this control and check if the right mouse button has been clicked.

    Please do not hesitate to contact us if you need any additional assistance.