I know grouping of grid happens on the "field", but how can I group a column if I want it based on what the template shows?
For example:
<e-column field="relative.FirstName" headerText="Name" width="120" [template]="second">
<ng-template #second let-data>
<ng-container *ngFor="let relative of data.Relatives">
<ng-container *ngIf="relative.Type === 'Mother'">
{{ relative.FirstName }}
ng-container>
ng-container>
ng-template>
e-column>
I tried to do it on relative.Firstname, which of course does not work, but I don't know how to make it work.
This is the link to the stackblitz: https://stackblitz.com/edit/angular-rqwpom
So how can I make sure I can group on the firstname of the mothers?