Home Unanswered Active Tags New Question

How to add different colors for days and weeks header

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

Asked by Anonymous 1 year ago.
Replies

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

Example:

protected void DayPilotScheduler1_BeforeTimeHeaderRender(object sender, DayPilot.Web.Ui.Events.BeforeTimeHeaderRenderEventArgs e)
{
  e.BackgroundColor = "blue";
}
Answer posted by Dan Letecky [DayPilot] 10 months ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java