Skip to main content

GridFilterMenuButtonDisplayMode Enum

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum GridFilterMenuButtonDisplayMode

Members

Name Description
Default

For the DxGrid.FilterMenuButtonDisplayMode property, the buttons are always hidden.
For the DxGridDataColumn.FilterMenuButtonDisplayMode property, to inherit the value from the DxGrid.FilterMenuButtonDisplayMode property

Never

The buttons are always hidden.

Always

The buttons are always visible.

Remarks

The Grid implements a column filter menu that displays a drop-down list of all unique values within a column. The GridFilterMenuButtonDisplayMode enumerator list values that allows you to specify the filter menu button’s display mode.

For more information about column filter menus, refer to the following help topic: Column Filter Menu in Blazor Grid.

@inject CustomerService CustomerData

<DxGrid Data="@customers" 
        FilterMenuButtonDisplayMode="GridFilterMenuButtonDisplayMode.Always">
    <Columns>
        <DxGridDataColumn FieldName="ContactName" />
        <DxGridDataColumn FieldName="Company" />
        <DxGridDataColumn FieldName="Country" 
                          FilterMenuButtonDisplayMode="GridFilterMenuButtonDisplayMode.Never" />
    </Columns>
</DxGrid>

@code {
    IGrid grid { get; set; }
    DateTime data { get; set; }
    private Customer[]? customers;
    protected override async Task OnInitializedAsync() {
        customers = await CustomerData.GetData();
    }
}

Blazor Grid - Filter Menu

See Also