DayPilot.Scheduler.scrollToResource

The scrollToResource() method sets the Scheduler vertical scrollbar position to the specified resource.

Declaration

Using a resource ID:

DayPilot.Scheduler.scrollToResource(id);

Using a DayPilot.Row object:

DayPilot.Scheduler.scrollToResource(row);

Parameters

  • id (string | number) - resource ID

  • row (DayPilot.Row) - DayPilot.Row instance for the target resource

Notes

You can identify the target resource either by its ID or by passing a DayPilot.Row object.

Example

dp.scrollToResource("1");

See Also

DayPilot.Scheduler.rows.find()

DayPilot.Scheduler.scrollTo()

DayPilot.Row Class

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript