DxTreeListDataColumn.FilterMenuButtonDisplayMode Property
Specifies when the column displays the filter menu button.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.Grid.v26.1.dll
Declaration
[DefaultValue(TreeListFilterMenuButtonDisplayMode.Default)]
[Parameter]
public TreeListFilterMenuButtonDisplayMode FilterMenuButtonDisplayMode { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| TreeListFilterMenuButtonDisplayMode | Default | An enumeration value. |
Available values:
| Name | Description |
|---|---|
| Default | For the DxTreeList.FilterMenuButtonDisplayMode property, the buttons are always hidden. |
| Never | The buttons are always hidden. |
| Always | The buttons are always visible. |
| VisibleOnHover | The buttons are visible on hover. |
Remarks
A filter menu button opens a drop-down menu containing all unique column values. Users can select and deselect these values to filter TreeList data.

Use DxTreeList.FilterMenuButtonDisplayMode to specify filter menu button visibility for all data columns, and a column’s FilterMenuButtonDisplayMode property to specify button visibility for that column. The following values are available for both properties:
Always- Filter menu buttons are visible.
Never- Filter menu buttons are hidden.
VisibleOnHover- A column displays the filter menu button in the following cases:
- Users move the mouse pointer over the column header.
- Users focus the column header using keyboard shortcuts.
- A filter is applied to the column.
- The application runs on a touch device. In this case, the hover state is unavailable and filter menu buttons are always visible.
Note
The TreeList cannot create filter item lists for columns associated with certain data types (for instance, arrays and images). If you do not implement a filter menu template for such a column, the column filter menu displays the following text instead of filter items: “No filters are available for this column.”
Example
The following code snippet configures filter menu buttons as follows:
- Task and Employee Name columns always display filter menu buttons.
- The Due Date column displays a filter menu button on hover.
- The Start Date column does not display a filter menu button.
@inject EmployeeTaskService EmployeeTaskService
<DxTreeList Data="TreeListData"
KeyFieldName="Id"
ParentKeyFieldName="ParentId"
FilterMenuButtonDisplayMode="TreeListFilterMenuButtonDisplayMode.Always">
<Columns>
<DxTreeListDataColumn FieldName="Name" Caption="Task" />
<DxTreeListDataColumn FieldName="EmployeeName" />
<DxTreeListDataColumn FieldName="StartDate"
FilterMenuButtonDisplayMode="TreeListFilterMenuButtonDisplayMode.Never"/>
<DxTreeListDataColumn FieldName="DueDate"
FilterMenuButtonDisplayMode="TreeListFilterMenuButtonDisplayMode.VisibleOnHover"/>
</Columns>
</DxTreeList>
@code {
List<EmployeeTask> TreeListData { get; set; }
protected override void OnInitialized() {
TreeListData = EmployeeTaskService.GenerateData();
}
}
