DayPilot.Gantt.onRowEdit

The onRowEdit event is fired when the user finishes inline row editing. The Gantt Chart component fires this event before the default action (specified by the rowEditHandling property).

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

Arguments

  • args.task - holds a DayPilot.Task object representing the task
  • args.newText (string) - new text provided by the user (read/write since 2023.1.5529)
  • args.x (number) - column index (available since 2023.1.5529)
  • args.preventDefault() - cancels the default action

Example

dp.onRowEdit = function(args) {
  alert("Renaming task to: " + args.newText);
};