I am working with the pro edition of the DHTMLX Gantt. We are using the inline date editor to alter the dates of the Tasks instead of the Lightbox. Is it possible to disable certain dates in this date picker?
For example if the day is weekend or a national holiday then Gantt should prevent assigning the tasks to the user on that day given that we already have the list of holidays occurring over the course of the project.
Hello Siddhesh,
Gantt uses the input element with the date type for the inline editors with the date type. The calendar is rendered by the browser, so we don’t control it. And there is no built-in way to disable some dates.
You need to implement a custom solution for that. Probably, the easiest way would be to use a 3rd-party library to display calendars and block some days there.
I have the following example of the implementation with the DHTMLX Suite’s Calendar: