The cells.forRange() method returns an array of cells for the specified time range.
Declaration
DayPilot.Row.cells.forRange(start, end)Parameters
start(DayPilot.Date | string) - range start date/timeend(DayPilot.Date | string) - range end date/time
Return Value
Returns an array of cells for the specified time range.
Business Properties
In Pro since version 2026.4.7083, returned cells include the custom business flags set by Scheduler.onBeforeCellRender, even for dates outside the visible area. Use these flags when checking availability or calculating business time for the requested range.
Example
dp.rows.find("A").cells.forRange(DayPilot.Date.today(), DayPilot.Date.today().addDays(1)).addClass("today");See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot