Premium support for our pure JavaScript UI components


Post by david10sing »

Hi, we are facing a problem with our setup of the Gantt chart in the area of ‘End Dates’ for Tasks.

We've gone through this https://www.bryntum.com/docs/gantt/#Gantt/model/TaskModel#start-and-end-dates.

Basically, the two problems are:

  • When you set a ‘start and end date’ for a task using the datepicker, it sets the end date to be midnight (00:00) on the end date, and doesn’t count that as a ‘day’ in duration field.

  • If you click and drag on a task to set the end date, when you let go – the date is set as 00:00 on the day after you selected in the Gantt

This is making big confusion when our users set end dates – the ‘Duration’ and ‘End Dates’ never work as expected.

We had the same thing happen with Bryntum SchedulerPro and we've had to put in a lot of "hacks" to ensure that the dates received from the server is interpreted correctly by Bryntum SchedulerPro internal date engine. If there was a config to have the end date as inclusive and to have it save that date instead of the following day, that would be great so we would not need to change our business logic around start, end dates and duration calculations.

Can you advise if there is a config that we can set to fix these issues and make it behave as our client expects?


Post by arcady »

Have you tried using an 8hrs/day calendar? I think it'll then show dates the way you expect.
You can try that on the advanced demo (even online in here). Just execute this code in your browser console and then try editing tasks:

gantt.project.hoursPerDay = 8
gantt.project.calendar = 'business'

Post Reply