PopupMenuShowingEventArgs.MenuType Property
Gets the type of the context menu that is about to be shown.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
TreeListMenuType | A value that specifies the menu type. |
Available values:
Name | Description |
---|---|
User | Corresponds to the user defined context menu. |
Summary | The context menu invoked with a right click on a group summary or total summary. |
Column | The context menu invoked with a right click on a column header. |
Node | The context menu invoked with a right click on a node. |
AutoFilter | The menu that allows the user to select a condition in the automatic filtering row. |
Remarks
The Tree List shows a context menu when the user right-clicks within the following areas:
- Column Header — the control shows the Column Header Context Menu if the EnableColumnMenu option is enabled. The menu contains commands related to columns: sorting, filtering, etc.
- Node — the control shows the Node Context Menu if the EnableNodeMenu option is enabled. The menu contains commands related to nodes: expand, collapse, create a new node, etc.
- Group Footer, Summary Footer — the control shows the Footer Context Menu if the EnableFooterMenu option is enabled. The menu contains commands related to summaries: sum, min, average, etc.
- Empty Area — the menu invoked with a right-click below the tree list’s nodes. The default empty-area context menu does not contain any commands. Use the PopupMenuShowing event to populate the menu.
The HitInfo and MenuType
event arguments allow you to determine the clicked visual element and the type of the menu that is about to be displayed.