Hi guys,
I have a problem with the groupSummary Feature inside the Grid.
Initialy Data is displayed correctly and sorted by first Date Column:
but later when the user klicks on the header it doesn't sort the items the same way it was definied in groupSortFn function an result is this:
Correct behaviour is:
Group items by date
Sort Groupes by Date desc
Part of Grid config:
group: {
field: 'taskDate',
ascending : false,
sortable: false,
groupSortFn : (a, b) => {
const date1 = getDateFromString(String(a.taskDate));
const date2 = getDateFromString(String(b.taskDate));
return date1.getTime() < date2.getTime() ? -1 : 1;
}
Is there a function that controlls header sort click for group summary feature?
If there isn't one how can manual sorting be disabled?
Thanks.
Version 5.0.0
Angular: 11.2.11