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().
dp.onRowEdit = function(args) { alert("Renaming task to: " + args.newText); };