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
100
SetContextMenuUltra - determine when the context menu is open
posted
I have a form that sets a context menu that is created at design time. Form_load event: ultraToolbarsManager.SetContextMenuUltra(mycontrol, "popupToolKey"); i need to be able to tell when the context menu is open. i have tried ((Infragistics.Win.UltraWinToolbars.PopupMenuTool)ultraToolbarsManager.Tools["CylinderViewRightClick"]).IsOpen and this always returns false (PS, i wasnt sure where to post this... sorry if it is in an incorrect spot) Thanks for any help, Brandon
Parents
  • 44743
    Verified Answer
    posted

    This is the correct place for this question. You are doing the right check, although it looks like you are checking the IsOpen value for a tool with a different key than the tool used as the context menu for the control. If I am wrong and the value is still always returning False, it might be a bug and I would recommend submitting the issue to the support group: http://ko.infragistics.com/gethelp. You might be able to work around this by handling the BeforeToolDropdown and AfterToolCloseup events of the toolbars manager. The SourceControl property of these event args will be the control for which the menu is showing as a context menu (or null if the menu is not displaying as a context menu).

Reply Children
No Data