Dynamic getGroupingValue - trigger re-grouping
I have a date column where I want to support grouping by year, quarter, month or date.
Whenever the grouping type changes I need to set a new getGroupingValue function to get correct grouping.
However, setting this new function does not trigger a re-grouping of the rows.
Is there a way to trigger a re-grouping of the rows?
1 Reply
unwilling-turquoiseOP•11mo ago
I found a working solution, which feels very hacky. I make sure the table is given a new reference to the data array every time the type of grouping changes, which forces it to recalculate the grouping value for every row.