cancel autoschedule

Hi,

I would like to stop a autoschedule as soon as we encounter a task whose progress is 100%.

I tried this -

gantt.attachEvent(“onBeforeTaskAutoSchedule”,function(task, startDate, link, predecessor){
if (task.progress == 1) {
return false;
}
return true;
});

it returns false …still the autoschedule doesn’t stop it schedules the task as well as the dependent tasks.

Could you pls help. I need to stop the cascading.

Thanks & Regards,
Tripty

Hello,

Your example works properly:
docs.dhtmlx.com/gantt/snippet/2f8bf028
Autoscheduling stops for completed tasks and continues to work for the others.