Hello
I’m trying to process an action on server-side, like deleting a task, but if it returns an error (database timeout for example), I want to prevent the task from being deleted from Gantt. Something like:
var dp = gantt.createDataProcessor({
url: "/api",
mode: "JSON"
});
dp.attachEvent("onAfterUpdate", function(id, action, tid, response){
// receive error message, displays to user and prevents changes in Gantt -- in this case, don't delete the task
});