Our state of the art Gantt chart


Post by pawel »

I've enabled editor for cells, and if I edit start date, end date gets moved as well, to keep the same duration. I do not have duration defined for tasks. Why it's happening and how to disable that?

I assume it's rather trivial issue with clear answer in docs, but I couldn't find it. Or it's not and you need a demo from me?

Here is an example task. As a "quick fix" solution, I've introduced "actualEndDate" which gets displayed instead of "endDate".

{
  "id": "fe2a0b24-3248-436e-ad25-f72693a5a086",
  "rowVersion": "AAAAAAAA1sU=",
  "canDelete": true,
  "percentDone": 0,
  "startDate": "2023-01-25T23:00:00.000Z",
  "actualEndDate": "2023-02-27T22:59:00.000Z",
  "endDate": "2023-02-27T22:59:00.000Z",
  "name": "New task - 1",
  "type": "Task",
  "status": "Active",
  "resources": [],
  "equipments": [],
  "expanded": true,
  "manuallyScheduled": true,
  "wrapperCls": "parent-task is-editable task-type",
  "cls": "parent-task is-editable task-type"
}

Post by marcio »

Hey pawel,

That's not configurable. Changing startDate "move" event as it is (keep duration) to another start time. Changing endDate changes the duration of that event.

Best regards,
Márcio


Post by pawel »

Thanks for the quick response! That's surprising. I was pretty sure it's just some configuration. But the solution that I mentioned is good enough. We just have different value for displaying endDate in cell.


Post Reply