DxPivotTable.FilterMenuButtonDisplayMode Property
Specifies when field headers display filter menu buttons.
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 |
|
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 the visibility of filter menu buttons for all fields.
The following code hides filter menu buttons for all fields:
<DxPivotTable Data="@PivotData"
FilterMenuButtonDisplayMode="PivotTableFilterHeaderAreaDisplayMode.Never" >
<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" />
</Fields>
<DxPivotTable>
To control filter menu button visibility for an individual field, use the DxPivotTableField.FilterMenuButtonDisplayMode property. Note that the value specified at the field level overrides the value specified at the component level.