Show cool things you have done with our products


Post by simond »

Hi to all,
I built my first Gantt chart following the Advanced Gantt Chart example on a custom set of data coming from a json, but now I have the following issue.
Let's consider the columns "Start", "Finish" and "Duration". What I need to achieve is that when I try to change the start or finish field, the duration would be recomputed whereas if I change the duration value only the start field would be recomputed keeping fixed the finish field.
How can I do that? Any advice is really appreciated cause right now I'm stucked and I cannot advance any further on my project.

Thank you in advance for your help.
Simone

Post by Terence »

I do not fully understand what you want to achieve. Currently only enddate(finish date) is calculated based on a duration change. Duration will change if you adjust enddate.

Startdate will not change duration at default. If you change it in the column editor the duration is kept at default. See: https://www.bryntum.com/products/gantt-for-extjs/docs/ ... tStartDate
second argument.
If you want to change this behaviour you can set keepDuration as a config in the startdate column
https://www.bryntum.com/products/gantt-for-extjs/docs/ ... epDuration

Post Reply