The eventRightClickHandling property (string) specifies how onEventRightClick should be handled when the user right-clicks an event.
Declaration
DayPilot.Scheduler.eventRightClickHandlingPossible Values
"ContextMenu"- opens the event context menu."Disabled"- disables built-in event right-click handling."Enabled"- fires the related right-click event without running another built-in UI action."Bubble"- shows the event bubble(DayPilot Pro only)."Edit"- starts event editing(DayPilot Pro only)."Select"- selects the right-clicked event(DayPilot Pro only)."CallBack"- delegates the action using CallBack(DayPilot Pro only; ASP.NET WebForms, ASP.NET MVC, and Java versions only)."PostBack"- delegates the action using PostBack(ASP.NET WebForms only)."JavaScript"- uses the legacy client-side JavaScript handling mode.
Default Value
"ContextMenu"Notes
Use onEventRightClick when you need to inspect the clicked event or cancel the default action before it runs.
Legacy values such as "PostBack", "CallBack", and "JavaScript" are preserved for older integration modes.
Examples
JavaScript
const bubble = new DayPilot.Bubble();
const dp = new DayPilot.Scheduler("dp", {
bubble,
eventRightClickHandling: "Bubble",
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
bubble: new DayPilot.Bubble(),
eventRightClickHandling: "Bubble",
// ...
};React
<DayPilotScheduler
bubble={bubble}
eventRightClickHandling="Bubble"
{/* ... */}
/>const bubble = new DayPilot.Bubble();Vue
<DayPilotScheduler
:bubble="bubble"
eventRightClickHandling="Bubble"
<!-- ... -->
/>const bubble = new DayPilot.Bubble();See Also
DayPilot.Scheduler.onEventRightClick
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
Lite does not support: Bubble, Edit, Select
DayPilot