Skip to content

[Grouping] Custom aggregation functions #3302

@begemott

Description

@begemott

Hi

I've tried the new grouping feature and find out that it is impossible to provide a function that calculates a group value. For example, if I want to group by a column that contains DateTime values, now the Grid creates a group for each distinct value in the column. Instead it would be better to have groups like Today, Yesterday, This Week, This Month and so on. It can be done by adding a new field like valueFormatter or valueBuilder in the columnDef.grouping object. The type of the field is function that accept a cell value and return a formatted group value.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions