Date Blocking in the inline date picker of Gantt

Hello everyone,
Screenshot 2023-04-19 163445

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:

Thanks for the reply!

I have the pro edition of DHTMLX Gantt(v7.1.13) alone, so I am afraid that I wont be able to implement the solution suggested by you

Is it possible to use dhx_calendar in Gantt Pro?

Hello Siddhesh,
It will work in the 7.1.x versions:
https://files.dhtmlx.com/30d/b56d87efd1173c0f8772178b40d308ef/vokoscreen-2023-04-21_15-30-26.mp4

Was able to make it work. Thanks a ton!