DayPilot.Scheduler.selectTimeRange

The selectTimeRange() method selects a Scheduler time range programmatically.

Declaration

DayPilot.Scheduler.selectTimeRange(start, end, resource[, dontFireEvent]);

Parameters

  • start (DayPilot.Date or string) - selection start as a DayPilot.Date instance or an ISO string

  • end (DayPilot.Date or string) - selection end as a DayPilot.Date instance or an ISO string

  • resource (string or number) - selection resource ID

  • dontFireEvent (boolean) - optional flag that prevents onTimeRangeSelect and onTimeRangeSelected from firing when set to true

Example

dp.selectTimeRange("2019-11-01T00:00:00", "2019-11-03T00:00:00", "A");

See Also

DayPilot.Scheduler.clearSelection()

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript