Our state of the art Gantt chart


Post by gaurav.tyagi »

Hello,
Please find the attached test project.
I have used durationUnit as "working days" for Run tests task.
It fails to load the data where as same is working in the ExtJs gantt.

Also, with durationUnit as "working days", start dates are shown as whatever I have defined but with durationUnit as "days", it has been recalculated, in ExtJs it used to remain as whatever provided.

Attachments
advanced.zip
(952.76 KiB) Downloaded 49 times

Post by Maxim Gorkovsky »

Hello.
working days is not a valid field value, please refer to this doc article for accepted values: https://bryntum.com/docs/gantt/api/Gantt/model/TaskModel#field-durationUnit

Also this definition would be redundant as Gantt only schedules tasks in working time as defined by the project calendar. Please refer to this guide:
https://bryntum.com/docs/gantt/guide/Gantt/basics/calendars


Post by gaurav.tyagi »

Hello Maxim,
Thanks for the reply.
I had checked the documentation but I was confused as ExtJs gantt did not use to throw any exception.

Also about my second point, is there any way to start/end tasks as per the date provided in data, instead of recalculating it.
Eg: In the sample I have provided "Run tests" task have difference in the start/end(2019-01-23/2019-01-27) date provided in the data and what actually loads.
I checked the calendar documentation but could not find a way to load the tasks with the provided dates.

Thank you again.


Post by Maxim Gorkovsky »

There is a guide but it is temporary unavailable in a conveniently readable form. You can find it here: https://bryntum.com/docs/gantt/engine/gantt_events_scheduling.md

Answering your question, if you want task to not shift anywhere after load, you have two options:

  1. Use manually scheduled tasks. They stay where you put them and don't ever move.
  2. Specify task start date using constraint fields:
    constraintType: 'startnoearlierthan',
    constraintDate: '2019-01-23'

Post by gaurav.tyagi »

Thanks a lot Maxim.
This is what I was looking for.


Post Reply