DayPilot.Scheduler.selectedRows

The selectedRows property (string[] | number[]) holds the IDs of selected rows. It can be used during Scheduler initialization to select specific rows, and it is updated whenever the row selection changes.

Declaration

DayPilot.Scheduler.selectedRows

Default Value

[]

Notes

Use this property to preselect rows during initialization or to inspect the current selection after it changes.

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  selectedRows: ["A", "B"],
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  selectedRows: ["A", "B"],
  // ...
};

React

<DayPilotScheduler
  selectedRows={["A", "B"]}
  {/* ... */}
/>

Vue

<DayPilotScheduler
  :selectedRows='["A", "B"]'
  <!-- ... -->
/>

See Also

Row Selecting [doc.daypilot.org]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript