The timeRangeSelectedHandling property (string) specifies the default action performed after the user completes time range selecting in the JavaScript Calendar component.
DayPilot.Calendar.timeRangeSelectedHandling"Enabled" - keeps the standard time range selection behavior and fires the related selection events.
"Disabled" - prevents time ranges from being selected.
"CallBack" - executes the server-side selection action using CallBack (ASP.NET WebForms, ASP.NET MVC, and Java versions only).
"PostBack" - executes the server-side selection action using PostBack (ASP.NET WebForms only).
"JavaScript" - uses the client-side JavaScript API and fires client-side selection handlers instead of a server callback (ASP.NET WebForms, ASP.NET MVC).
"Enabled"Use DayPilot.Calendar.onTimeRangeSelect to intercept the selection before the default action is performed, and DayPilot.Calendar.onTimeRangeSelected to react after it finishes.
JavaScript
const calendar = new DayPilot.Calendar("dp", {
timeRangeSelectedHandling: "Enabled",
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
timeRangeSelectedHandling: "Enabled",
// ...
};React
<DayPilotCalendar
timeRangeSelectedHandling="Enabled"
{/* ... */}
/>Vue
<DayPilotCalendar
:timeRangeSelectedHandling="'Enabled'"
<!-- ... -->
/>DayPilot.Calendar.onTimeRangeSelect
DayPilot.Calendar.onTimeRangeSelected
Time Range Selecting [doc.daypilot.org]