Our state of the art Gantt chart


Post by Bhava »

Hi team,
I am using gantt + scheduler pro
I have given calender info for resource.
when i assign a resource in their non working hours the task getting moved to the available hours. But I dont want to change the task startdate and enddate time.

How to stop moving of the task when assigned a resource in their non working hours. instead i can show popup stating "the resource is not allowed". How to achieve this?

Thanks


Post by arcady »

A check will look something like this:

// check if resource calendar availability matches the task start
if (task.startDate && resource.effectiveCalendar.run('skipNonWorkingTime', task.startDate) > task.startDate) {
    // ... resource calendar availability starts later than the task does
}

Post by Bhava »

thank you


Post Reply