DayPilot.Scheduler.multiselect.add

The multiselect.add() method adds an event to the list of selected events.

Declaration

DayPilot.Scheduler.multiselect.add(e, dontRedraw);

Parameters

  • e (DayPilot.Event) - event to be added to the list of selected events
  • dontRedraw (boolean) - true if the scheduler should not be automatically updated using multiselect.redraw()

Notes

For bulk operations, use dontRedraw = true and call multiselect.redraw() after all changes have been made.

Example

Select an event manually in an EventClick handler.

JavaScript

dp.onEventClicked = function(args) {
  dp.multiselect.add(args.e);
};

See Also