DayPilot.Gantt.taskClickHandling

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

Declaration

DayPilot.Gantt.taskClickHandling

Possible Values

  • "Enabled" - task clicking is enabled, related events are fired, and no default action is performed.

  • "Disabled" - task clicking is disabled.

  • "PostBack" - fires the TaskClick event on the server side (ASP.NET WebForms).

  • "CallBack" - fires the TaskClick event on the server side (ASP.NET WebForms, ASP.NET MVC, Java only)

  • "Bubble" - opens a task bubble.

  • "ContextMenu" - opens a task context menu.

  • "Edit" - activates inline task editing.

  • "Select" - selects the task.

Default Value

"Enabled"

Examples

JavaScript

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

Angular

<daypilot-gantt [config]="config"></daypilot-gantt>
config: DayPilot.GanttConfig = {
  taskClickHandling: "ContextMenu",
  // ...
};

React

<DayPilotGantt
  taskClickHandling="ContextMenu"
  {/* ... */}
/>

Vue

<DayPilotGantt
  taskClickHandling="ContextMenu"
  <!-- ... -->
/>

See Also

DayPilot.Gantt.onTaskClick

DayPilot.Gantt.onTaskClicked

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript