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:
| Lite | Pro | |
|---|---|---|
| DayPilot for JavaScript | ||
| DayPilot for ASP.NET WebForms | ||
| DayPilot for ASP.NET MVC | ||
| DayPilot for Java |
DayPilot