Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GridFilterMenuButtonDisplayMode Enum

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
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.

razor
@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