Welcome to the React feedback portal. We’re happy you’re here! If you have feedback on how to improve the React, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hi,
I encountered a strange behavior in the Gantt chart when enablePredecessorValidation={false} and isInPredecessorValidation = true in the taskbarEditingEvent. For some reason, after the Gantt is loaded and filled in with data, when I move a milestone from the top of the tasks list.. the Gantt is triggering PredecessorValidation and ruins the entire scheduling of the tasks.
In our usage, we have mostly milestones in the tasks list. When the predecessor validation is happening, all the milestones happen in the same day because there is no duration.
After some research, I found out that we can disable the predecessor validation and rely on the dependency + offset to display the milestones in time like the project manager wants. So this was fixed by enablePredecessorValidation={false}.
The second issue was that the data was loading fine, displaying the milestones with offsets but there was no longer any dependency happening, meaning that if I moved a milestone, the rest were not moving. In order to fix this I added in the taskbarEditingEvent the parameter isInPredecessorValidation = true as I found out in this forum.
So now everything is working as expected except the first interaction with the Gantt after the data is loaded. Moving the first milestone, will reset everything and afterwards everything seem to work as expected, so only in the first interaction this is happening and I don't know why.
I prepared an example:
https://stackblitz.com/edit/react-6lscfc-3nabjn?file=data.js,index.js
If you move (via drag and drop) the milestone Project start - comissioning .. by one day, then everything is reset..
Is there a way to fix this?