Has the Servoy grid been updated with the ag-grid aggregate functions yet or do we wait for NG2 or?
I also wanted to use the aggregate functions in the grid like example 1 here:
https://www.ag-grid.com/javascript-grid/aggregation/#recomputing-aggregatesSetting the columndef as per these instructions does not produce any row aggregation.
I might be doing it wrong or the Servoy interface may not implement this.
The columndef is:
- Code: Select all
enableValue=true
aggFunc = 'sum'
and for the column that is groupBy:
- Code: Select all
rowGroup=true
I am not able to do the next couple of steps because I do not know how to get the columnApi. The example shows:
- Code: Select all
After the grid is initialised, there are two steps to set an aggregation on a column:
Set the aggregation function on the column via columnApi.setColumnAggFunc(colKey, aggFunc)
Add the columns to the list of value columns via columnApi.addValueColumn(colKey)
When the grid initialises, any column definitions that have aggFunc set will be automatically added as a value column.
My objective is to provide sub-totals in the row of the group by column.
I have been using the form var to display in the footer the Servoy aggrgates but it would be nice use case to display the totals per group across the row.
Are there other ways to achieve this.
Using Serovy 2021.03 latest (not ng2).