blazor-devexpress-dot-blazor-dot-pivottable-dot-dxpivottablefield-103b28ad.md
Specifies when the field header displays a filter menu button.
Namespace : DevExpress.Blazor.PivotTable
Assembly : DevExpress.Blazor.PivotTable.v25.2.dll
NuGet Package : DevExpress.Blazor.PivotTable
[DefaultValue(PivotTableFilterMenuButtonDisplayMode.Default)]
[Parameter]
public PivotTableFilterMenuButtonDisplayMode FilterMenuButtonDisplayMode { get; set; }
| 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.
|
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.
See Also