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.
DayPilot.Scheduler.selectedRows[]Use this property to preselect rows during initialization or to inspect the current selection after it changes.
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"]'
<!-- ... -->
/>Row Selecting [doc.daypilot.org]