I would need to only use the nonWorkingTime as a display where it shows the weekends highlighted, but when a task is dragged/resized I'd not want the gantt to perform any holiday calculations, but instead just use the date as is. is there a config or way to solve it?
Thanks mats, I did take a look at the Calendars docs and couldn't find a way to say nonWorkingTime setting of a calendar is only for ui and not for Gantt calculations of a task's start/end date. The assumption is, if a project's tasks are manuallyScheduled then the complete control relies on the user who does it themselves. But this doesn't seem to be the case. Can you please help?
This would mean, we construct the weekend for Saturday and Sunday manually across the gantt view and pass it on. I'm sorry I might not follow this timeranges thing properly. I would like to set all weekends of a money to be greyed like how it happens when a calendar is added with nonWorkingTime.
If you want repeating Saturday/Sunday to be shown then you would probably want recurrence in time ranges. The best way is to study demo Scheduler: Recurring Time Ranges (I know it is Scheduler but Gantt extends Scheduler so it will work in Gantt too.)
You only need to enable timeRangesFeature and to have the correct data. The demo data:
Here's a screenshot of what I can see in my Gantt view
Screenshot 2021-02-17 at 8.48.46 AM.png (17.7 KiB) Viewed 1209 times
ideally it should have the same Saturday and Sunday on Feb 13,14 20201. Inspected console and I could only see one "Saturday" present (just to be sure it isn't hiding behind in CSS)
Hey alex, I tried this as well, but doesnt seem to be recurring. I see the same as in the previous screenshot I've shared. I'm using version 4.0.8 of BryntumGantt.