Filter API

Community Technology Preview (CTP)

 
Amount
Count
Year
Quarter
Month
Region
Country
2017
2018
2019
Grand Total
Amount Count Amount Count Amount Count Amount Count
Africa
43620264520028220201111084065
Asia
189190412008654411154020501595105
Australia
101475317613027422701321987571
Europe
21511554216425558363521515175130
North America
22964579204205677292527506775173
South America
978453810048042503151724864097
Grand Total8768902698433052633827051092102900641

The DevExpress Blazor Pivot Table allows you to filter data in code. To apply filter criteria, create a criteria operator object that specifies a filter expression and send this object to the SetFilterCriteria method. When you call this method, the Pivot Table clears all filters applied previously. When a filter is applied, the Pivot Table raises the FilterCriteriaChanged event.

To obtain currently applied filters, use the GetFilterCriteria method.

In this demo, the Tag Box component allows user to select continents. We create a criteria operator object based on the Tag Box's selected value/values. To apply the criteria operator, the SetFilterCriteria method is called.

For additional information, refer to the following topic: Filter API.