Back to Devexpress

PivotTableCustomizeFilterMenuEventArgs.DataItems Property

blazor-devexpress-dot-blazor-dot-pivottable-dot-pivottablecustomizefiltermenueventargs-34b75065.md

latest2.4 KB
Original Source

PivotTableCustomizeFilterMenuEventArgs.DataItems Property

Returns a list of data items used to generate the filter menu items.

Namespace : DevExpress.Blazor.PivotTable

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

NuGet Package : DevExpress.Blazor.PivotTable

Declaration

csharp
public List<PivotTableFieldFilterMenuDataItem> DataItems { get; }

Property Value

TypeDescription
List<PivotTableFieldFilterMenuDataItem>

The list of data items.

|

Remarks

The Pivot Table creates a list of data items to populate the drop-down field filter menu. The CustomizeFilterMenu event fires before the window is shown and allows you to customize items.

The DataItems property returns a list of default items that contain unique column values (PivotTableFieldFilterMenuDataItem.Value) and corresponding display texts (PivotTableFieldFilterMenuDataItem.Text). Data items that have null or empty value are combined into a single filter menu item labeled Blanks.

You can customize, add, or remove items. Note that an item value cannot contain filter criteria. To implement complex filter criteria, create a filter menu template. For additional information, see the following property description: FilterMenuTemplate.

Refer to the CustomizeFilterMenu event description for additional information and an example.

See Also

PivotTableCustomizeFilterMenuEventArgs Class

PivotTableCustomizeFilterMenuEventArgs Members

DevExpress.Blazor.PivotTable Namespace