The latest sandbox build (7.0.2643) now uses the following BeforeEventRender handler on the main Scheduler page:
http://www.daypilot.org/sandbox/Scheduler/
protected void DayPilotScheduler1_BeforeEventRender(object sender, BeforeEventRenderEventArgs e)
{
int id = 0;
int.TryParse(e.Value, out id);
if (id % 2 == 0)
{
e.CssClass = "scheduler_green_red";
}
}
This should work in most cases. You will have a finite number of event types anyway.
e.BackgroundColor is now enabled and will be applied to the inner event div (the one with prefix_event_inner class). But if you use a gradient background in the CSS it will not be overriden by a plain background color style (background-color) defined using e.BackgroundColor.