The cells.forRange() method returns an array of cells for the specified time range.

Declaration

DayPilot.Row.cells.forRange(start, end)

Parameters

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

DayPilot.Row Class

Availability

Availability of this API item in DayPilot editions:

ProductLitePro
DayPilot for JavaScript