Event Color based on Type

Can you show me how I created events of different background and Text colors based on event types which I get from a seperate database table. The EventTypes table would hold the color and textcolor values.

I already have mapped the EventTypes table to the lightbox so I have a select box to choose the type. I just need to know how I apply the color attributes from the type to each event.

You can use event_class template to set custom css class based on types

scheduler.templates.event_class=function(start,end,event){ return event.type; }

and you can define different colors for different css classes

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