Colour row\cell on datagrid based on value in row

Hi Otis,

LightSwtich was excellent product however Radzen is very powerful as well! :slight_smile:

Here is how to define column Angular template with conditions:

<span *ngIf="data.UnitPrice >= 20" style="color: red;">
    ${data.UnitPrice | currency}
</span>
<span *ngIf="data.UnitPrice < 20">
    ${data.UnitPrice | currency}
</span>

Best Regards,
Vladimir

2 Likes