The multiselect.clear() method clears the list of selected events in the JavaScript Scheduler and updates the view.
DayPilot.Scheduler.multiselect.clear(dontRedraw)dontRedraw (boolean) - set to true if the scheduler should not be updated automatically using DayPilot.Scheduler.multiselect.redraw()
Use dontRedraw when you are performing multiple selection changes and want to refresh the Scheduler manually after the last change.
<button id="clear">Clear selection</button>
const dp = new DayPilot.Scheduler("dp", {
// ...
});
dp.init();
document.querySelector("#clear").addEventListener("click", () => {
dp.multiselect.clear();
});DayPilot.Scheduler.multiselect.get()
DayPilot.Scheduler.multiselect.redraw()
DayPilot Scheduler Event Selecting [doc.daypilot.org]