The timeRangeSelectedHandling property (string) specifies how DayPilot.Scheduler.onTimeRangeSelected should be handled in the JavaScript Scheduler component.
Declaration
DayPilot.Scheduler.timeRangeSelectedHandlingPossible Values
"Disabled"- time range selecting is not allowed."Enabled"- time range selecting is enabled; the selection stays active until you call DayPilot.Scheduler.update() or DayPilot.Scheduler.clearSelection()."CallBack"- firesTimeRangeSelectedusing CallBack. ASP.NET WebForms, ASP.NET MVC, and Java versions only."PostBack"- firesTimeRangeSelectedusing PostBack. ASP.NET WebForms only."JavaScript"- legacy api=1 option that fires DayPilot.Scheduler.onTimeRangeSelected.
Default Value
"Enabled"Notes
Use DayPilot.Scheduler.onTimeRangeSelect to intercept the selection before the default action is performed, and DayPilot.Scheduler.onTimeRangeSelected to react after it completes.
Legacy values such as "PostBack", "CallBack", and "JavaScript" are preserved for integrated server-side editions.
Examples
JavaScript
const dp = new DayPilot.Scheduler("dp", {
timeRangeSelectedHandling: "Enabled",
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
timeRangeSelectedHandling: "Enabled",
// ...
};React
<DayPilotScheduler
timeRangeSelectedHandling="Enabled"
{/* ... */}
/>Vue
<DayPilotScheduler
timeRangeSelectedHandling="Enabled"
<!-- ... -->
/>See Also
DayPilot.Scheduler.onTimeRangeSelect
DayPilot.Scheduler.onTimeRangeSelected
DayPilot.Scheduler.clearSelection()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot