The timeHeaderRightClickHandling property (string) specifies the default action for right-clicking a time header cell.
DayPilot.Scheduler.timeHeaderRightClickHandling"Enabled" - keeps the standard time header right-click behavior enabled.
"Disabled" - disables the default time header right-click action.
"PostBack" - executes the time header right-click action using PostBack (ASP.NET WebForms only).
"CallBack" - executes the time header right-click action using CallBack (ASP.NET WebForms, ASP.NET MVC, and Java versions only).
"Enabled"Use DayPilot.Scheduler.onTimeHeaderRightClick to inspect or cancel the action before it is performed, and use DayPilot.Scheduler.onTimeHeaderRightClicked to react after it finishes.
The right-click event pipeline is active when timeHeaderRightClickHandling is set to "Enabled".
JavaScript
const dp = new DayPilot.Scheduler("dp", {
timeHeaderRightClickHandling: "Disabled",
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
timeHeaderRightClickHandling: "Disabled",
// ...
};React
<DayPilotScheduler
timeHeaderRightClickHandling="Disabled"
{/* ... */}
/>Vue
<DayPilotScheduler
:timeHeaderRightClickHandling="'Disabled'"
<!-- ... -->
/>DayPilot.Scheduler.onTimeHeaderRightClick