Events-Coloring in year-view and agenda-view?

Sorry, I figure out how to do it…

[code].dhx_month_head.event_myevent {
background-color: red !important;
color: white !important;
}

scheduler.templates.event_class=function(start, end, event){
if(event.subject) { // if event has subject property then special class should be assigned
return “event_”+event.subject; //subject=myevent
}
return “”; // default return
}[/code]