How to change color of column based on some attribute in data grid?

0
I want to change color of status column values based on attribute Status. The page is bind to page parameter dashboard but the table datasource is Microflow that is returning list of Trainings. I tried with dynamic classes but there $currentObject is Dashboard. I am not able to access Training Object.   I want to render this table like below:   I havr color code field in Training data.  
asked
3 answers
2

Hi Shikha,

 

You can use a list view instead of the data grid and put the dynamic class on the Status attribute (with currentObject) of this list view?

answered
1

Unfortunately the default “Dynamic classes” option does not work on the attributes of the row for columns..

We use the Cell Styler widget to add custom classes to our columns/rows . Nowadays it even supports nanaflows which makes it very easy to use.

https://marketplace.mendix.com/link/component/106254

answered
0

Prefer using list view and then give conditional visibility to the attribute value of status. You can use 2 display values of attribute value. For pending visibility set its color as desired and similarly for completed.

answered