DayPilot.Scheduler.scrollToResource

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

Declaration

Using resource id:

DayPilot.Scheduler.scrollToResource(id);

Using DayPilot.Row object:

DayPilot.Scheduler.scrollToResource(row);

Parameters

  • id (string | number) - resource id
  • row (DayPilot.Row) - row object

Example

dp.scrollToResource("1");