Upper Left Corner of JavaScript Scheduler

You can customize the upper-left corner of the JavaScript Scheduler component using the cornerText/cornerHtml properties or using the onBeforeCornerRender event.

Note that when using named row header columns, the space available in the upper-left corner will be smaller.

JavaScript Scheduler

Initial value:

const scheduler = new DayPilot.Scheduler("scheduler", {
  cornerHtml: DayPilot.Date.today().getYear(),
  // ...
});
scheduler.init();

Force a new value (override the current cornerHtml):

scheduler.update({
  cornerHtml: DayPilot.Date.today().getYear(),
});

Dynamic value, evaluated on every update:

const scheduler = new DayPilot.Scheduler("scheduler", {
  onBeforeCornerRender: args => {
     args.html = DayPilot.Date.today().getYear(),
  },
  // ...
});
scheduler.init();

ASP.NET WebForms

Initial page load/PostBack

DayPilotScheduler1.CornerHtml = String.Format("<div style='padding:5px; font-weight: bold; font-size:22px; text-align:center'>{0}</div>", DayPilotScheduler1.StartDate.Year);

CallBack

DayPilotScheduler1.CornerHtml = String.Format("<div style='padding:5px; font-weight: bold; font-size:22px; text-align:center'>{0}</div>", DayPilotScheduler1.StartDate.Year);
DayPilotScheduler1.Update();

ASP.NET MVC

CallBack

CornerHtml = String.Format("<div style='padding:5px; font-weight: bold; font-size:22px; text-align:center'>{0}</div>", StartDate.Year);
Update();