DayPilot.Scheduler.drawBlankCells

The drawBlankCells property (boolean) controls whether the JavaScript Scheduler renders blank grid cells as standalone div elements.

Declaration

DayPilot.Scheduler.drawBlankCells

Default Value

true

Notes

  • When set to false, blank cells are not rendered as standalone div elements and only cells with custom properties set using DayPilot.Scheduler.onBeforeCellRender are rendered.

  • Setting drawBlankCells to false can help optimize scrolling performance.

  • When blank cells are not drawn, business/non-business cell highlighting and resource parent cell highlighting are not available.

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  drawBlankCells: false,
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  drawBlankCells: false,
  // ...
};

React

<DayPilotScheduler
  drawBlankCells={false}
  {/* ... */}
/>

Vue

<DayPilotScheduler
  :drawBlankCells="false"
  <!-- ... -->
/>

See Also

DayPilot.Scheduler.onBeforeCellRender

Scrolling Performance [doc.daypilot.org]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript