Hello. Whenever i set duration to decimal value the task duration gets updated correctly but, the value shown(here column name is Time) round to nearest integer. My duration unit is seconds. How can i do that? Thank you
Hello,
Internally, Gantt stores the duration in the integer format. There is no way to change how it works. But it is possible to enter and display the duration in the integer format. To do that, you need to use a “lower” duration_unit and add the formatters:
https://docs.dhtmlx.com/gantt/api__gantt_duration_unit_config.html
https://docs.dhtmlx.com/gantt/desktop__formatters_ext.html#durationformatter
For example, you can store the duration in minutes, but it will be displayed in days with decimal values.
Here are examples:
https://docs.dhtmlx.com/gantt/samples/09_worktime/09_decimal_durations.html
https://snippet.dhtmlx.com/5/ca856630e