DayPilot.Calendar.multiselect.add

Declaration

DayPilot.Calendar.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.

This method replaced DayPilot.Calendar.eventSelect(e).

Example

Select an event manually in the custom EventClick handler.

.aspx

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

JavaScript

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