DayPilot.Gantt.onRowClick

Fired when the user clicks a task row header, before the default RowClick action (specified by rowClickHandling property).

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

Arguments

  • args.task - holds a DayPilot.Task object representing the task
  • args.preventDefault() - cancels the default action

Example

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