SMART datagrid v.1 > Classes > ColumnSummary
The callback function which returns the value to be displayed in sum cell such as column Footer, etc.
In scope which is transferred by parameter, it contains the sum values which have been calculated within the grid. In the table below, it has explained all values set in scope. If specify this property, expression will be ignored.
column.footer().setCallback(function (scope) {
return scope.sum();
});
Variables | Explanation |
---|---|
row | If it is to find the sum of row group footer, it will be the corresponding GroupRow. v 1.3.7 |
column | Column of which sum has already been calculated. |
count | The number of data rows. |
sum | The sum of data cell values of all data rows. |
max | The maximum value. |
min | The minimum value. |
avg | Average. |
var | Sample variance |
varp | Population variance |
stdev | Sample standard deviation |
stdevp | Population standard deviation |