fires when a task is being loaded from the data source

boolean onTaskLoading(Task task);
taskTaskthe object of a task
booleandefines whether the default action of the event will be triggered (true) or canceled (false)


gantt.attachEvent("onTaskLoading", function(task){
    //any custom logic here
    return true;

  • The event fires for each task in the data source.
  • The event is blockable. Return false and the task won't be loaded into the Gantt chart.
See also
Back to top