Skip to content

Commit dfe9cba

Browse files
PivotGridDataSource: Fix calculateSummaryValue Code & Add Example Link (#8792)
1 parent a6a0703 commit dfe9cba

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

api-reference/30 Data Layer/PivotGridDataSource/1 Configuration/fields/calculateSummaryValue.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ To add a new grand totals column, add an item to **fields** and check that the *
184184
calculateSummaryValue(cell){
185185
const isGrandTotalCell = !cell.parent("column");
186186
if(isGrandTotalCell){
187-
return e.value();
187+
return cell.value();
188188
}
189189
return null;
190190
},
@@ -208,7 +208,7 @@ To add a new grand totals column, add an item to **fields** and check that the *
208208
calculateSummaryValue(cell){
209209
const isGrandTotalCell = !cell.parent("column");
210210
if(isGrandTotalCell){
211-
return e.value();
211+
return cell.value();
212212
}
213213
return null;
214214
},
@@ -231,7 +231,7 @@ To add a new grand totals column, add an item to **fields** and check that the *
231231
calculateSummaryValue(cell){
232232
const isGrandTotalCell = !cell.parent("column");
233233
if(isGrandTotalCell){
234-
return e.value();
234+
return cell.value();
235235
}
236236
return null;
237237
},
@@ -254,7 +254,7 @@ To add a new grand totals column, add an item to **fields** and check that the *
254254
calculateSummaryValue(cell){
255255
const isGrandTotalCell = !cell.parent("column");
256256
if(isGrandTotalCell){
257-
return e.value();
257+
return cell.value();
258258
}
259259
return null;
260260
},
@@ -263,6 +263,12 @@ To add a new grand totals column, add an item to **fields** and check that the *
263263

264264
---
265265

266+
You can configure **calculateSummaryValue** to apply custom aggregation logic to total and grand total rows and columns. For more information, see the following example:
267+
268+
#include btn-open-github with {
269+
href: "https://github.com/DevExpress-Examples/devextreme-pivotgrid-grand-total-and-total-detection"
270+
}
271+
266272
#include uiwidgets-ref-functioncontext with {
267273
value: "field's configuration"
268274
}

0 commit comments

Comments
 (0)