SMART datagrid v.1 > Classes > ValueColumn
Callback function which finds the sum displayed in summary cell of column header and column footer cell.
You can specify summaryCallback separately in Summary cell and Footer cell respectively, and if specify individual callback, callback function specified by this property will be ignored.
Defaults to null.
column.setSummaruyCallback(function (column) {
var f = column.dataIndex();
var ds = column.grid().dataSource();
var sum = 0;
for (var r = ds.rowCount(); r--;) {
sum += ds.getValue(r, f);
}
return sum;
});