SMART datagrid v.1 > Classes > ColumnSummary

Back  Forward

DataLudi.ColumnSummary.callback  property

The callback function which returns the value to be displayed in sum cell such as column Footer, etc. 

function (scope:Object):Number;

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. 

Getter
function callback(): Function
Setter
function setCallback(value: Function)
Code -1
    column.footer().setCallback(function (scope) {
        return scope.sum();
    });
Note
Table-1  scope variables
VariablesExplanation
rowIf it is to find the sum of row group footer, it will be the corresponding GroupRow. v 1.3.7
columnColumn of which sum has already been calculated.
countThe number of data rows.
sumThe sum of data cell values of all data rows.
maxThe maximum value.
minThe minimum value.
avgAverage.
varSample variance
varpPopulation variance
stdevSample standard deviation
stdevpPopulation standard deviation
See Also
summaryCallback
expression
Examples
Column Footer Callbacks
Column Footer