The requested page is not available for the requested platform. You are viewing the content for Default platform.

BootstrapGridViewBuilderBase<T>.TotalSummary(Action<BootstrapSummaryItemCollectionBuilder>) Method

Provides access to total summary items.

Namespace: DevExpress.AspNetCore.Bootstrap

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll


public T TotalSummary(
    Action<BootstrapSummaryItemCollectionBuilder> config
Public Function TotalSummary(
    config As Action(Of BootstrapSummaryItemCollectionBuilder)
) As T


Name Type Description
config Action<BootstrapSummaryItemCollectionBuilder>

An Action that configures the BootstrapSummaryItemCollectionBuilder class.


Type Description

A reference to this instance after the operation is completed.



Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

A total summary represents the value of an aggregate function calculated over all rows within the grid and is displayed within the grid footer, provided that the ShowFooter option is enabled. The TotalSummary method adds a total summary item to the shown footer.

Use a summary item's FieldName method to specify a data field which will be used for summary calculation. The summary is displayed in the column specified using the FieldName method. You can also use the ShowInColumn method to explicitly specify the column that should display the summary.

There are five predefined aggregate functions that you can use to calculate summaries: Sum, Min, Max, Average, and Count. You can define the summary type for each summary item using the SummaryType method.

The example below demonstrates how to add Count-type and Sum-type summaries to Grid View.

    .Settings(settings => settings.ShowFooter(true))
    .Columns(columns => {
            .PropertiesTextEdit(properties => properties.DisplayFormatString("c"));
            .UnboundExpression("UnitPrice * Quantity")
            .PropertiesTextEdit(properties => properties.DisplayFormatString("c"));
    .TotalSummary(summary => {
    .Routes(routes => routes
    .MapRoute(r => r
See Also