Skip to main content
All docs
V25.1
  • DxPivotTableField.FilterMenuButtonDisplayMode Property

    Specifies when the field header displays a filter menu button.

    Namespace: DevExpress.Blazor.PivotTable

    Assembly: DevExpress.Blazor.PivotTable.v25.1.dll

    NuGet Package: DevExpress.Blazor.PivotTable

    Declaration

    [DefaultValue(PivotTableFilterMenuButtonDisplayMode.Default)]
    [Parameter]
    public PivotTableFilterMenuButtonDisplayMode FilterMenuButtonDisplayMode { get; set; }

    Property Value

    Type Default Description
    PivotTableFilterMenuButtonDisplayMode Default

    An enumeration value.

    Available values:

    Name Description
    Default

    Auto is used. Filter menu buttons are displayed in field headers.

    Never

    Filter menu buttons are not displayed in field headers.

    Auto

    Filter menu buttons are displayed in field headers.

    Remarks

    Use the FilterMenuButtonDisplayMode property to control filter menu button visibility for the current field.

    The following code hides a filter menu button for the SalesDate field:

    <DxPivotTable Data="@PivotData">
        <Fields>
            @*...*@
            <DxPivotTableField Field="@nameof(VehiclesData.TrademarkItem.Modification)"
                               Area="@PivotTableArea.Filter"/>
            <DxPivotTableField Field="@nameof(VehiclesData.TrademarkItem.BodyStyle)"
                               Name="@BodyStyleName"
                               Area="@PivotTableArea.Filter" />
            <DxPivotTableField Field="@nameof(VehiclesData.TrademarkItem.SalesDate)"
                               GroupInterval="@PivotTableGroupInterval.Date"
                               Name="fieldSalesDate"
                               Area="@PivotTableArea.Filter" 
                               FilterMenuButtonDisplayMode="PivotTableFilterHeaderAreaDisplayMode.Never" />
        </Fields>
    <DxPivotTable>
    

    To control the button visibility for all fields, use the DxPivotTable.FilterMenuButtonDisplayMode property. Note that the value specified at the field level overrides the value specified at the component level.

    Run Demo: Column Filter Menu

    See Also