search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Different Colours for events in Scheduler

Asked by Anonymous
5 years ago.

Is it possible to have different colours for events in the scheduler? I have a requirement to change the colour dependant on the event type.

Answer posted by Henri
5 years ago.

Something like this works in c#:

protected override void OnBeforeEventRender(BeforeEventRenderArgs e)
if (Boolean.Parse(e.Tag["CheckedIn"]))
e.BackgroundColor = "#9FF59F";
if (Boolean.Parse(e.Tag["CheckedOut"]))
e.BackgroundColor = "#9BB3BD";
if (Boolean.Parse(e.Tag["ShouldBeCleaned"]))
e.BackgroundColor = "#FF9369";

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.