Use different background colours based on enumerations that are displayed in a datagrid

0
Is there a way that will let me apply different coloured backgrounds to enumerations that can be displayed in a datagrid? 
asked
4 answers
1

The datatables widget from the appstore has the possibility to style a cell in a grid based on it's value:

https://appstore.home.mendix.com/link/app/2702/

Might a bit more configuration then a normal datagrid but it works, you could check out the test project for implementation: https://appstore.home.mendix.com/link/app/2703/

answered
0

Hi Dominic,

Perhaps you can try the EnumClass widget: https://appstore.home.mendix.com/link/app/2641/

With kind regards,

Bryan de Wit

answered
0

Hi Dominic,

If I read your question correctly, you want to style a datagrid row based on an enumeration value? if so, the cell styler widget can do this. You have the option to write a rule in javascript or use a nanoflow to apply styling to a row in a datagrid. 

https://appstore.home.mendix.com/link/app/106254/

 

Hope this helps!

answered
0

you could make a listview with a table in it with conditional visability and then add classes that are linked to different styles.

(this is what we do when we need to have a line to give some sort of warning or icon or something else)

answered