The taskClickHandling (string) specifies the default action performed by the JavaScript Gantt Chart component when the user clicks a task box.

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



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

  const gantt = new DayPilot.Gantt("dp", {
    taskClickHandling: "ContextMenu",
    // ...