Hello,
I’m using Gantt chart v 8.0.3 and Angular.
I have a Gantt chart which has auto_schedule flag on, and I would like to have an event, which would trigger, after Project task is updated (start or end date).
I’ve tried using onAfterAutoSchedule and onAfterTaskUpdate events, but seems they are not working for project level task.
May be you can suggest a solution?
Hello Evgeniy,
The tasks with the project
type ignore the date parameters (start_date
, end_date
, duration
) as they obtain them from their children. So, technically, they are not updated.
When you load the data from the database, the project tasks will jump to the correct position depending on their children’s dates, regardless of what dates are saved in the database.
However, if you still need to know that the dates of the project tasks are changed, you need to manually implement a custom solution by using Gantt API and Javascript.
The following examples can help you to start:
http://snippet.dhtmlx.com/5/10a74e743
http://snippet.dhtmlx.com/5/1379315ba