The taskRightClickHandling (string) specifies the default action performed by the JavaScript Gantt Chart component when the user clicks a task box using the right mouse button.
Declaration
DayPilot.Gantt.taskRightClickHandlingPossible Values
"Enabled"- task clicking will be enabled, events will be fired, no default action"Disabled"- task clicking will be disabled, no events will be fired"PostBack"- fires the server-side event using PostBack (ASP.NET WebForms)"CallBack"- fires the server-side event using CallBack (ASP.NET WebForms, ASP.NET MVC, Java)"Bubble"- opens a task bubble"ContextMenu"- opens a task context menu"Edit"- activates the inline edit mode"Select"- selects the task.
Default Value
"Enabled"Examples
JavaScript
const gantt = new DayPilot.Gantt("dp", {
taskRightClickHandling: "ContextMenu",
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
taskRightClickHandling: "ContextMenu",
// ...
};React
<DayPilotGantt
taskRightClickHandling="ContextMenu"
{/* ... */}
/>Vue
<DayPilotGantt
taskRightClickHandling="ContextMenu"
<!-- ... -->
/>See Also
Task Bubble [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot