How to color a specific calculated field

0
How to color a specific calculated field in mendix.  eg. Column A and Column B is our Input and Column C is Summation of A&B. I want to Red Color Specific cell if output value is greater than 50. Please help.  Thanks in advance.
asked
1 answers
1

Hi Amar, 

You can add custom css in your datagrid cell based on condition. 

For example , click the column header cell and go to appearance tab use dynamic cell section to add your custom CSS like below ,

if $currentobject/attribute>50 

then

'color-red'

else

''

you can define the custom CSS with this class name called color-red

in your custom CSS file you can add below style 

.color-red{

background-color : red;

}

 

image.png

answered