DayPilot.Gantt.onRowClick

The onRowClick event is fired when the user clicks a task row header of the Gantt Chart, before the default action (specified by the rowClickHandling property).

The default action can be canceled by calling args.preventDefault().

Arguments

  • args.task - a DayPilot.Task object representing the task
  • args.x (number) - the column index (available since 2023.1.5529)
  • args.preventDefault() - cancels the default action

Example

dp.onRowClick = function(args) {
  alert("Clicked: " + args.task.id());
};