I have the following, which successfully counts up the total of row on a SINGLE page of a datatable. How do I get the sum off ALL rows in the group, rather than just the ones on any single page?
rowGroup: {
dataSrc: 0,
startRender: function (rows, group) {
var sum = rows
.data()
.pluck(3)
.reduce(function (a, b) {
return a + b * 1;
}, 0);
return $('<tr/>')
.append('<td colspan="3">' + group + ' - Total Coverages: ' + sum + '</td>')
}
.append('<td colspan="3">' + group + ' - Coverages: ' + totCov + '</td>')
},