display the events in different color

Hai,
i want to display the events in different color depending on it criteria from database.
Each event has a status as ‘Y’ or ‘N’.
If event status is ‘Y’ ,display the text in bold , black color with background color as red .
If event status is ‘N’ ,display the text in black color with background color as yellow .

How to do this?

thank you
rencin.

You can redefine event_class template and assign different css classes based on any custom property.

docs.dhtmlx.com/doku.php?id=dhtm … om_styling