monthly-event-calendar-html5-day-header.png

You can customize the day header (with day names - Monday, Tuesday...) using BeforeHeaderRender event handler.

You can customize the following properties:

  • HTML
  • Background color

ASP.NET WebForms

protected void DayPilotMonth1_BeforeHeaderRender(object sender, BeforeHeaderRenderEventArgs e)
{
  if (e.DayOfWeek == DayOfWeek.Sunday) {
    e.Html = "Sun";
  }
}

ASP.NET MVC

Not supported yet.

JavaScript

dp.onBeforeHeaderRender = function(args) {
  args.header.html += "*" + args.header.dayOfWeek;
};