The timeRangeSelectedHandling property (string) specifies how completed time range selections are handled in the monthly calendar.
Declaration
DayPilot.Month.timeRangeSelectedHandlingPossible Values
"Disabled"- time range selecting is not allowed."Enabled"- enables time range selection and performs the standard client-side action when the selection is completed."PostBack"- firesTimeRangeSelectedusing PostBack(ASP.NET WebForms only)."CallBack"- firesTimeRangeSelectedusing CallBack(ASP.NET WebForms, ASP.NET MVC, and Java versions only)."JavaScript"- fires DayPilot.Month.onTimeRangeSelected when using DayPilot.Month.api =1."Hold"- keeps the selection active so the context menu can be opened using right click; equivalent to"Enabled".
Default Value
"Enabled"Notes
Use DayPilot.Month.onTimeRangeSelect while the selection is changing, and use DayPilot.Month.onTimeRangeSelected after the selection is completed.
The legacy "JavaScript" and "Hold" values are preserved for older integrations.
Examples
JavaScript
const dp = new DayPilot.Month("dp", {
timeRangeSelectedHandling: "CallBack",
// ...
});
dp.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
timeRangeSelectedHandling: "CallBack",
// ...
};React
<DayPilotMonth
timeRangeSelectedHandling="CallBack"
{/* ... */}
/>Vue
<DayPilotMonth
timeRangeSelectedHandling="CallBack"
<!-- ... -->
/>See Also
DayPilot.Month.onTimeRangeSelect
DayPilot.Month.onTimeRangeSelected
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot