Blazor Grid - Summary

Use Blazor Bootstrap grid component to display tabular data from the data source. And it supports client-side and server-side filtering, paging, and sorting.

Example #

To enable summaries on columns, set the AllowSummary parameter to true at the Grid level. Additionally, set the SummaryType parameter on each GridColumn.
In the following example, the Employee Name column has SummaryType set to GridSummaryColumnType.Count, and the Salary column has SummaryType set to GridSummaryColumnType.Sum and SummaryValueDisplayFormat set to C to display the sum of salaries in currency format.
INFO
GridSummaryColumnType: Average, Count, Max, Min, Sum. Default value is GridSummaryColumnType.None.

Summary with Filters and Paging #

Summaries will be calculated based on the current page data.

Change prefix #

Set the SummaryValuePrefix parameter to custom string to change the prefix from the summary value.

Remove prefix #

Set the SummaryValuePrefix parameter to empty string to remove the prefix from the summary value.

Locale #

Set the Locale parameter on the Grid to change the CultureInfo of the summary.