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().


  • 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


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