I created an AggregationInfo:
AggregationInfo aggregationInfo = new AggregationInfo();
aggregationInfo.setType(AggregationInfo.Type.SUM);
Then I created a column and added an aggregation to the dataGrid:
Grid.Column<EmployeeDTO> column = dataGrid.addColumn(new NumberRenderer<>(keyValue -> {
Map<EmployeeDTO, Long> map = itemsMap.get(new EntityDto(kanbanStage));
return map.get(keyValue);
}, NumberFormat.getNumberInstance()))
.setKey(STAGE_KEY + kanbanStage.getId())
.setHeader(instanceNameProvider.getInstanceName(kanbanStage));
dataGrid.addAggregation(column, aggregationInfo);
But it is not working and not throwing any error.