BootstrapCardViewBuilderBase<T>.OnCustomSummaryCalculate(Action<IBootstrapCardView, IBootstrapCardViewCustomSummaryEventArgs>) Method

Enables you to calculate summary values manually.

Namespace: DevExpress.AspNetCore.Bootstrap

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


public T OnCustomSummaryCalculate(
    Action<IBootstrapCardView, IBootstrapCardViewCustomSummaryEventArgs> action
Public Function OnCustomSummaryCalculate(
    action As Action(Of IBootstrapCardView, IBootstrapCardViewCustomSummaryEventArgs)
) As T


Type Name Description
Action<IBootstrapCardView, IBootstrapCardViewCustomSummaryEventArgs> action

Contains data related to this event.


Type Description

A reference to this instance after the operation is completed.


Total summaries and group summaries provide five predefined aggregate functions. These functions allow you to calculate the number of rows, the maximum and minimum values, the sum and the average value. If you need to calculate a summary value using an aggregate function not included in the predefined set, set the summary item's SummaryType property to Custom and handle the CustomSummaryCalculate event.

The CustomSummaryCalculate event fires for each row involved in summary calculation. When calculating a total summary value, the event is raised for each data row. When calculating a group summary value, the event fires for each data row within the currently processed group. Additionally, the event is raised before and after processing rows. This can be used to perform any initialization and finalization.


The CustomSummaryCalculate event is not raised on callbacks if the grid's data is not updated.

See Also