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.
DayPilot.Gantt.taskRightClickHandling"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.
"Enabled"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"
<!-- ... -->
/>Task Bubble [doc.daypilot.org]