All docs
V23.2
24.1
23.2
23.1
22.2
The page you are viewing does not exist in version 22.2.
22.1
The page you are viewing does not exist in version 22.1.
21.2
The page you are viewing does not exist in version 21.2.
21.1
The page you are viewing does not exist in version 21.1.
20.2
The page you are viewing does not exist in version 20.2.
20.1
The page you are viewing does not exist in version 20.1.
19.2
The page you are viewing does not exist in version 19.2.
19.1
The page you are viewing does not exist in version 19.1.
18.2
The page you are viewing does not exist in version 18.2.
18.1
The page you are viewing does not exist in version 18.1.
17.2
The page you are viewing does not exist in version 17.2.
Box
Map

jQuery DataGrid - Summary

Specifies the properties of the grid summary.

import { Summary } from "devextreme/ui/data_grid"

calculateCustomSummary

Specifies a custom aggregate function. This function is called for summary items whose summaryType is "custom".

Type:

Function

Function parameters:
options:

Object

Summary information.

Object structure:
Name Type Description
component

DataGrid

The UI component's instance.

groupIndex

Number

A zero-based group level. Available only when calculating group summary items.

name

String

The summary item's name.

summaryProcess

String

Indicates the stage of the summary item calculation; equals "start", "calculate" or "finalize".

totalValue any

The resulting summary item's value.

value any

A column value used to calculate the summary. If you need an entire data object in this field, do not specify the summary item's column property. To display the summary in this case, use the showInColumn property instead.

groupItems

Specifies items of the group summary.

Type:

Array<Object>

Default Value: undefined

recalculateWhileEditing

Specifies whether to recalculate summaries while a user edits data.

Type:

Boolean

Default Value: false

skipEmptyValues

Specifies whether to skip empty strings, null and undefined values when calculating a summary. Does not apply when you use a remote data source.

Type:

Boolean

Default Value: true

texts

Contains properties that specify text patterns for summary items.

Type:

Object

totalItems

Specifies items of the total summary.

Type:

Array<Object>

Default Value: undefined