DayPilot.Gantt.taskRightClickHandling

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.

Possible 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" (ASP.NET WebForms)

  • "CallBack" (ASP.NET WebForms, ASP.NET MVC, Java)

  • "Bubble" - opens a task bubble

  • "ContextMenu" - opens a task context menu

Default Value

"Enabled"

Example

<div id="dp"></div>

<script>
  const gantt = new DayPilot.Gantt("dp", {
    taskRightClickHandling: "ContextMenu",
    // ...
  });
  gantt.init();
</script>