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
1080
GantGrid custom context menu
posted

Can anybody create a small demo with custom context menu creation in Grid part of GanttView. I don't want to use built in menu, but want to use ToolbarManager as menu. I tried to get UIElement in MouseDown, but don't know how to return selected row.

Parents
  • 23930
    Verified Answer
    Offline posted

    Hello,

    Thank you for contacting Infragistics Developer Support.

    Using the mouse down to get the UIElement is generally a good approach to get the element clicked by the user. You can get the row or the cell the user has clicked by using the following line:

                   ultraGanttView1.UIElement.ElementFromPoint(e.Location).GetAncestor(typeof(RowUIElement))

    This enables you to use this element in the ToolClick event of the UltraToolbarsManager.

    I have attached a sample which demonstrates this approach.

    Please let me know if you have any additional questions.

    WGV_CustomContextMenu.zip
Reply Children
No Data