DayPilot.Month.multiselect.add

Declaration

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

Parameters

  • e (DayPilot.Event) - event to be added to the list of selected events
  • dontRedraw (boolean) - true if the event calendar 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 the custom EventClick handler.

.aspx

EventClickHandling="JavaScript"
EventClickJavaScript="eventClick(e)"

JavaScript

function eventClick(e) {
  dpm.multiselect.add(e);
}