onBeforeAutoSchedule

fires before auto scheduling

boolean onBeforeAutoSchedule(string|number taskId);
taskIdstring|numberthe root task id
booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Available only in PRO Edition

Example

gantt.attachEvent("onBeforeAutoSchedule",function(taskId){
    // any custom logic here
    return true;
});

Related samples

Details

This functionality is available in the PRO edition only.

This event is defined in the auto_scheduling extension, so you need to activate the auto_scheduling plugin. Read the details in the Auto Scheduling article.

The event is blockable. Returning false will cancel further processing.

See also
Back to top