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.
Great, I got element from point, but missed this thing: typeof(RowUIElement)
Thanks a lot !!!
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.