Skip to main content

GanttControl.TreeListPopupMenuShowing Event

Allows you to customize the default menus for column headers, summary footers, and nodes.

Namespace: DevExpress.XtraGantt

Assembly: DevExpress.XtraGantt.v24.2.dll

Declaration

[DXCategory("Behavior")]
public event PopupMenuShowingEventHandler TreeListPopupMenuShowing

Event Data

The TreeListPopupMenuShowing event's data class is PopupMenuShowingEventArgs. The following properties provide information specific to this event:

Property Description
Allow Gets or sets whether to display the context menu. Inherited from BasePopupMenuShowingEventArgs.
HitInfo Provides access to information about the clicked visual element.
Menu Gets or sets the control’s popup menu that will be shown.
MenuType Gets the type of the context menu that is about to be shown.
Point Gets or sets coordinates of the invoked context menu (top-left corner) relative to the parent control. Inherited from BasePopupMenuShowingEventArgs.
ScreenPoint Gets coordinates of the invoked context menu (top-left corner) relative to the screen. Inherited from BasePopupMenuShowingEventArgs.

The event data class exposes the following methods:

Method Description
ShowCustomMenu(IDXDropDownControlEx) Invokes a custom context menu instead of the control’s menu. Inherited from BasePopupMenuShowingEventArgs.
ShowCustomMenu(ContextMenuStrip) Invokes a custom context menu instead of the control’s menu. Inherited from BasePopupMenuShowingEventArgs.

Remarks

The TreeListPopupMenuShowing event fires when a pop-up menu is about to be shown in the tree area. See the TreeList.PopupMenuShowing event for more information.

See Also