Hi,
I am passing the start date, end date, and duration. I just wanted to prevent the auto calculation of Gantt.
Hi,
I am passing the start date, end date, and duration. I just wanted to prevent the auto calculation of Gantt.
Hello Abid,
When you load the task data into Gantt, it needs to modify it to the format it works with. If there are only 2 date parameters, for example, only the start_date
and duration
, Gantt needs to calculate the end_date
. If there are all three date parameters, the duration
parameter will be ignored and calculated from the start_date
and end_date
parameters.
There is no way to change how it works.
However, you can change what is displayed for the users. You can set the gantt.config.duration_unit
to minute and add the formatters that will convert the minute units to days or months:
https://docs.dhtmlx.com/gantt/desktop__formatters_ext.html
https://docs.dhtmlx.com/gantt/desktop__working_time.html#taskdurationindecimalformat
Here is an example of how it works:
https://docs.dhtmlx.com/gantt/samples/09_worktime/09_decimal_durations.html