The Scheduler applies a special CSS class to business cells (workdays). The default CSS theme uses it to highlight weekends. You can also use BeforeCellRender event to customize the weekend background color. See also cell customization.

JavaScript

dp.onBeforeCellRender = function(args) {
  if (args.cell.start.getDayOfWeek() === 0 || args.cell.start.getDayOfWeek() === 6) {
      args.cell.backColor = "silver";
  }
};

ASP.NET WebForms

protected void DayPilotScheduler1_BeforeCellRender(object sender, DayPilot.Web.Ui.Events.BeforeCellRenderEventArgs e)
{
  if (e.Start.DayOfWeek == DaysOfWeek.Saturday || e.Start.DayOfWeek == DaysOfWeek.Sunday)
  {
    e.BackgroundColor = "silver";
  }
}

ASP.NET MVC

Use OnBeforeCellRender method:

protected override void OnBeforeCellRender(BeforeCellRenderArgs e)
{
  if (e.Start.DayOfWeek == DaysOfWeek.Saturday || e.Start.DayOfWeek == DaysOfWeek.Sunday)
  {
    e.BackgroundColor = "silver";
  }
}

Availability

Availability of this feature in DayPilot editions:

LitePro
DayPilot for JavaScript
DayPilot for ASP.NET WebForms
DayPilot for ASP.NET MVC
DayPilot for Java