I have set isInPredecessorValidation to false when taskbarEditing event (based on some criteria) and reset it to true on taskbarEdited event (
below the code); and after that, we would like to recover the new offset value.
What I would like to achieve is :
- update the dependencies data after reseting isInPredecessorValidation to true ?
- if not possible, how can we calculate the offset when we have the start date of task and the end date of the predecessor
public taskbarEdited(args: any) {
if (this.successorContainValidatedTask(args.data.TaskId)) {
this.ganttObj.isInPredecessorValidation = true;
// update dependencies
}
}
public taskbarEditing(args: any) {
if (this.successorContainValidatedTask(args.data.TaskId)) {
this.ganttObj.isInPredecessorValidation = false;
}
}