The eventSelectHandling property (string) specifies the default action used for event selection in the JavaScript Calendar component.
Declaration
DayPilot.Calendar.eventSelectHandlingPossible Values
"Update"- updates the event selection state in the UI."Disabled"- disables built-in event selection."CallBack"- processes the selection change using CallBack(ASP.NET WebForms, ASP.NET MVC, and Java versions only)."PostBack"- processes the selection change using PostBack(ASP.NET WebForms only).
Default Value
"Update"Notes
Use DayPilot.Calendar.onEventSelect to inspect or cancel the selection before the default action is performed, and use DayPilot.Calendar.onEventSelected after the selection state changes.
The built-in selection UI is available only when eventSelectHandling is not set to "Disabled".
Examples
JavaScript
const calendar = new DayPilot.Calendar("dp", {
eventSelectHandling: "Disabled",
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
eventSelectHandling: "Disabled",
// ...
};React
<DayPilotCalendar
eventSelectHandling="Disabled"
{/* ... */}
/>Vue
<DayPilotCalendar
eventSelectHandling="Disabled"
<!-- ... -->
/>See Also
Event Selecting [doc.daypilot.org]
DayPilot.Calendar.onEventSelect
DayPilot.Calendar.onEventSelected
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot