The drawBlankCells property (boolean) controls whether the JavaScript Scheduler renders blank grid cells as standalone div elements.
Declaration
DayPilot.Scheduler.drawBlankCellsDefault Value
trueNotes
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
drawBlankCellstofalsecan 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]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot