I have question about calendars, when I change project calendar through
gantt.project.setCalendar(value);
Tasks end dates are recalculated even for manually scheduled events,
Screen Shot 2021-07-26 at 08.48.43.png (153.34 KiB) Viewed 309 times
This root task is representing project, I want its start date and end date to be fixed, when changing calendar its end date is recalculated, I want it to be fixed and recalculate duration only.
And I can see all changes after refresh, how to auto refresh after recalculation?
...I want its start date and end date to be fixed...
I'm afraid that this is not how the scheduling engine works. The scheduling of the automatically scheduled tasks is determined by the engine depending on dependencies, scheduling mode, constraints and, of course, calendars. So when you change the calendar then the project end date changes as a result.
setCalendar triggers the propagation so no further action/refresh is required.
Notice please that it returns a Promise so the call is asynchronous. The change/update won't be immediately available after the setCalendar call. You would need something like: