If enabled using the taskClickHandling property, clicking a task box in the Gantt Chart component triggers the onTaskClick and onTaskClicked handlers.

You can use these events to open a dialog for task editing, add the task to the selection, or perform any other custom action.

Example

Gantt Chart config:

{
  taskClickHandling: "Enabled",
  onTaskClick: args => {
    console.log("Row clicked", args.task);
  },
  // ...
}

Availability

Availability of this feature in DayPilot editions:

LitePro
DayPilot for JavaScriptNo SupportFull Support
DayPilot for ASP.NET WebFormsNo SupportFull Support
DayPilot for ASP.NET MVCNo SupportFull Support
DayPilot for JavaNo SupportFull Support