Skip to main content
A newer version of this page is available. .

TreeListMenuItemClickEventArgs.MenuType Property

Gets the type of menu whose item has been clicked.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.2.dll

Declaration

public TreeListMenuType MenuType { get; }

Property Value

Type Description
TreeListMenuType

A TreeListMenuType enumeration value indicating the type of menu whose item has been clicked.

Available values:

Name Description
User

Corresponds to the user defined context menu.

Summary

Identifies the summary footer or row footer context menu.

Column

Identifies the column header context menu.

Node

Identifies a menu for a Tree List node. By default, the menu is empty. Use the TreeList.PopupMenuShowing event to add items to the menu.

AutoFilter

Corresponds to the menu of an auto filter row‘s condition selector.

Remarks

The TreeList control provides you with three kinds of context menus by default. The type of menu whose item has been clicked can be determined by inspecting the MenuType and TreeListMenuItemClickEventArgs.IsFooter property values.

The IsFooter property value The MenuType property value Menu type
true TreeListMenuType.Summary Summary footer menu.
false TreeListMenuType.Summary Row footer menu.
false TreeListMenuType.Column Column header menu.
See Also