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 IDrow(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()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot