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

How to add different colors for days and weeks header

Asked by Anonymous
9 years ago.

I am using the scheduler with the by week view and by day view menus. I would like to have a different colors assigned to each week header and to each day header. Example I would like week 1 header to be Blue, Week 2 header be Red, Week 3 header be green, and in the day view would like to do the same thing. How is this possible and what do I need to do to accomplish this thank you

Answer posted by Dan Letecky [DayPilot]
9 years ago.

You can use BeforeTimeHeaderRender event handler to change properties of the time header cells.


protected void DayPilotScheduler1_BeforeTimeHeaderRender(object sender, DayPilot.Web.Ui.Events.BeforeTimeHeaderRenderEventArgs e)
  e.BackgroundColor = "blue";
This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.