If a grouping aggregator is defined for an editable column, when an edit for that column is committed, by default the grouping total for that column does not update.
In the following code sample, I can call dataView.refresh()
whenever an edit is commited for a certain column, but this will recalculate the grouping aggregator totals for all the columns with grouping aggregators.
grid.onCellChange.subscribe(function (e, args) {
var dataView = grid.getData();
var column = grid.getColumns()[args.cell];
if (column.id === 'MyEditableColumn') {
dataView.refresh();
}
});
For thousands of data items and many grouping aggregators, this could be computationally heavy in older browsers, especially if it's going to happen after every edit in a column with a grouping aggregator. Is there a way to recalculate a single grouping aggregator for only one column?