Hi Mr J GEORGE,
Thanks for contacting Syncfusion support.
From your code, we understood that you want to show the Grid
aggregates on a condition, and you have placed the ngIF in the “e-aggregates”
tag which is the cause of the reported problem. To overcome this, we suggest
using the ngIF in the “e-columns” tag instead of the aggregate tag. Please refer to
the below code example and sample link for more information.
|
<e-aggregates>
<e-aggregate>
<e-columns *ngIf="showTotals">
<e-column type="Sum" field="UnitsInStock">
<ng-template #groupFooterTemplate let-data>
Total Shift Pay: {{ data.Sum }}</ng-template>
</e-column>
</e-columns>
</e-aggregate>
</e-aggregates>
|
Sample: https://stackblitz.com/edit/angular-4jyaut?file=app.component.html
Please get back to us if you need further assistance on
this.
Regards,
Pavithra S