Example of Grouping Bar in Blazor Pivot Table Component
This sample demonstrates grouping feature of the pivot table. The grouping bar is automatically populated from the bound report, and fields can be dragged and dropped to alter the report at runtime. The fields can be sorted, filtered, added and removed dynamically as well.
The pivot table grouping bar option automatically populates fields from the bound data source and allows end users to drag fields between different axes such as columns, rows, values, and filters, and create pivot table at runtime. To enable grouping bar, set the ShowGroupingBar property in SfPivotView to true.
Filter and sort icons allow displaying selective records and ordering them in ascending or descending order. The value type icon allows to display values based on selected aggregate type. The remove icon allows the user to remove the field from the report.
The fields panel, which is located above the grouping bar, displays the fields that are available in the data source but are not bound in the report. The fields can be dragged and dropped into the appropriate axis. In addition, any field removed from any axes will be automatically added to the fields panel. The fields panel can be displayed by setting the ShowFieldsPanel property in the PivotViewGroupingBarSettings to true.
We can also hide the sort, filter, remove and value type icon in the PivotViewGroupingBarSettings by setting the ShowSortIcon, ShowFilterIcon, ShowRemoveIcon and ShowValueTypeIcon properties to false.
More information on the grouping bar feature can be found in this documentation section.