html5-scheduler-grid-disabled-grid-cells.png

You can disable selected cells using BeforeCellRender event handler. The following actions will be forbidden for the disabled cells:

JavaScript

Available since 2018.1.3180.

dp.onBeforeCellRender = function(args) {
  if (args.cell.start < new DayPilot.Date("2018-02-27") || args.cell.resource === "D") {
      args.cell.disabled = true;
      args.cell.backColor = "#ccc";
  }
};

ASP.NET WebForms

Available since 2018.1.3642.

protected void DayPilotScheduler1_BeforeCellRender(object sender, DayPilot.Web.Ui.Events.BeforeCellRenderEventArgs e)
{
  if (e.Start < DateTime.Today)
  {
      e.Disabled = true;
      e.BackgroundColor = "#ccc";
  }
}