Hi,
I have a grid as shown example below, how can i set the color for the text field data in a column based on difference between 2 columns.
<e-grid-columns>
<e-grid-column field="OldValue" headerText="OldValue"></e-grid-column>
<e-grid-column field="NewValue" headerText="NewValue"></e-grid-column>
</e-grid-columns>
Example :
Old Value | New Value |
100g | 200g |
Sugar | Sugar |
White | Brown |
$5 | $2 |
Available | Available |
As per example, I want the text in New Value column which are Different than Old Value column.
In this case I want 200g, Brown & $2 to be in red color. Other than that is default black color.
Thank you.