The multiselect.add() method adds an event to the list of selected events.
DayPilot.Scheduler.multiselect.add(e, dontRedraw)e (DayPilot.Event) - item to be added to the list of selected events
dontRedraw (boolean) - set to true to skip the automatic update and refresh the selection later using multiselect.redraw()
For bulk operations, use dontRedraw = true and call multiselect.redraw() after all changes have been made.
Add the clicked event to the multiselection in the onEventClicked handler.
const dp = new DayPilot.Scheduler("dp", {
onEventClicked: (args) => {
dp.multiselect.add(args.e);
},
// ...
});
dp.init();DayPilot.Scheduler.multiselect.redraw()
Event Selecting [doc.daypilot.org]