Our state of the art Gantt chart


Post by S.R. »

In Ext Gantt the following property was provided:

adjustMilestones : Boolean
If true, the start/end dates of the milestones will be adjusted -1 day during rendering and editing. The task model will still hold the raw unmodified date.

This property was considered for example in Gnt.model.task.DateAdjustment.

The result was, that a milestone could either be terminated in the evening (adjustMilestone = true) or in the morning.
Does something similar exist for Bryntum Gantt?

In our use case the milestones are terminated in the evening, but I could not yet find a solution to correct the dispayed date accordingly ...

Thanks for any hint.


Post by arcady »

We decided to not move that config to vanilla Gantt because it resulted some inconsistency cases (it was described in this guide).

If you need to display other date values you could try using column renderer function to adjust displayed values as you wish. And to adjust edited value you could use https://www.bryntum.com/products/gantt/docs/api/Gantt/view/Gantt#event-beforeCellEditStart event.. Or maybe it would be better to just make new custom start/end date fields on the task model. The field would process passed values in their setters and put it to original start/end fields. And getters would just return original value minus one day when you need.


Post Reply