Back to Devexpress

TreeListFilterMenuButtonDisplayMode Enum

blazor-devexpress-dot-blazor-3cc5470b.md

latest2.6 KB
Original Source

TreeListFilterMenuButtonDisplayMode Enum

Lists values that specify when to display column filter menu buttons in the TreeList.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public enum TreeListFilterMenuButtonDisplayMode

Members

NameDescription
Default

For the DxTreeList.FilterMenuButtonDisplayMode property, the buttons are always hidden.
For the DxTreeListDataColumn.FilterMenuButtonDisplayMode property, to inherit the value from the DxTreeList.FilterMenuButtonDisplayMode property.

| | Never |

The buttons are always hidden.

| | Always |

The buttons are always visible.

|

The following properties accept/return TreeListFilterMenuButtonDisplayMode values:

Remarks

The following example adds a filter menu button to all columns, except Task :

razor
<DxTreeList Data="Data"
            KeyFieldName="Id"
            ParentKeyFieldName="ParentId"
            FilterMenuButtonDisplayMode="TreeListFilterMenuButtonDisplayMode.Always"
            CssClass="max-h-480">
    <Columns>
        <DxTreeListDataColumn FieldName="Name" 
                              Caption="Task" 
                              FilterMenuButtonDisplayMode="TreeListFilterMenuButtonDisplayMode.Never" />
        <DxTreeListDataColumn FieldName="EmployeeName" Caption="Assigned To" TextAlignment="TreeListTextAlignment.Left" />
        <DxTreeListDataColumn FieldName="StartDate" Width="150px" />
        <DxTreeListDataColumn FieldName="DueDate" Width="150px" />
    </Columns>
</DxTreeList>

See Also

DevExpress.Blazor Namespace