Hi Mounir,
Greetings from Syncfusion support.
You can achieve the requirement of applying custom styles to particular aggregate footer template cells by defining the template content inside a element and applying the required styles to it. This is demonstrated in the below code snippet,
app.component.html
<ejs-grid [dataSource]="data" [allowPaging]="true" [pageSettings]='pageOption'>
<e-aggregates>
<e-aggregate>
<e-columns>
<e-column type="Sum" field="Freight" format="C2">
<ng-template #footerTemplate let-data><span class="customcss">Sum: {{data.Sum}}</span></ng-template>
</e-column>
</e-columns>
</e-aggregate>
</e-aggregates>
</ejs-grid> |
app.component.css
.e-templatecell .customcss {
color: blue;
} |
We have prepared a sample based on this for your reference. You can find it below,
You can find the list of CSS classes to apply styles for customizing each section styles in the Grid from the below documentation link,
Please get back to us if you require any further assistance.
Regards,
Sujith R