DxTreeList.FilterPanelDisplayMode Property
Specifies the filter panel visibility.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
Declaration
[DefaultValue(TreeListFilterPanelDisplayMode.Never)]
[Parameter]
public TreeListFilterPanelDisplayMode FilterPanelDisplayMode { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| TreeListFilterPanelDisplayMode | Never | An enumeration value. |
Available values:
| Name | Description |
|---|---|
| Never | The filter panel is hidden. |
| Always | The filter panel is always visible. |
| Auto | The filter panel appears when data is filtered (otherwise, the panel is hidden). |
Remarks
The TreeList component ships with an integrated filter panel. This panel includes the following elements:
- The filter toggle that allows users to temporarily deactivate the filter.
- The current filter condition. Users can click it to open the filter builder dialog and customize the filter.
- The Clear Filter button.

Assign Auto to FilterPanelDisplayMode to display the filter panel only when TreeList data is filtered. Note that the panel remains visible after the filter is temporarily deactivated (disappears only after the filter is cleared).
To always display the filter panel, set the FilterPanelDisplayMode property to Always:
@inject EmployeeTaskService EmployeeTaskService
<DxTreeList Data="TreeListData" KeyFieldName="Id" ParentKeyFieldName="ParentId"
FilterMenuButtonDisplayMode="TreeListFilterMenuButtonDisplayMode.Always"
FilterPanelDisplayMode="TreeListFilterPanelDisplayMode.Always">
<Columns>
<DxTreeListDataColumn FieldName="Name" Caption="Task" />
<DxTreeListDataColumn FieldName="EmployeeName" Caption="Assigned To" />
<DxTreeListDataColumn FieldName="StartDate" />
<DxTreeListDataColumn FieldName="DueDate" />
<DxTreeListDataColumn FieldName="Priority">
<EditSettings>
<DxComboBoxSettings Data="Priorities" ValueFieldName="Value" TextFieldName="Text" />
</EditSettings>
</DxTreeListDataColumn>
<DxTreeListDataColumn Caption="Progress" FieldName="Status">
<CellDisplayTemplate>
<DxProgressBar Value="Convert.ToDouble(context.Value)" Thickness="0.875em" Size="100%"
MinValue="0" MaxValue="100" ShowLabel="false" />
</CellDisplayTemplate>
</DxTreeListDataColumn>
</Columns>
</DxTreeList>
@code {
List<EmployeeTask> TreeListData { get; set; }
protected override void OnInitialized() {
TreeListData = EmployeeTaskService.GenerateData();
}
record Priority(int Value, string Text);
static readonly IReadOnlyList<Priority> Priorities = new Priority[] {
new Priority(-1, "Low"),
new Priority(0, "Medium"),
new Priority(1, "High"),
};
}
Implements
See Also