If I have a custom aggregate, how do I access the total of that column with getcolumnaggregateddata?
Here is my column:
{text: 'Late', datafield: 'rptlate', hidden: false, groupable: false, exportable: true, width: 60, renderer: colsrend, cellsalign: 'center', aggregates: [{'Late: ': function(aggregatedValue, currentValue, column, record) {
if (isNaN(currentValue)) {
if (currentValue == 'X') {
return aggregatedValue + 1;
}
} else {
return aggregatedValue + currentValue;
};
return aggregatedValue;
}}]
Now I need to use getcolumnaggregateddata to retrieve the total.