Gantt chart - update the dependencies when using isInPredecessorValidation to false

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;
    }
  }



1 Reply 1 reply marked as answer

MS Monisha Sivanthilingam Syncfusion Team July 20, 2020 03:23 PM UTC

Hi Harifenitra, 
 
Thank you for contacting Syncfusion support. 
 
We have analyzed your query and would like to inform you that the updated records can be gotten in the taskbarEdited event itself. You can get the updated dependency data from that event itself. If you want to skip predecessor validation for the specific task then we would like to suggest custom scheduling concept. 
 
 
public taskbarEdited(args: any) { 
        console.log(args.data.Predecessor); 
    } 
 
 
Please let us know, if our suggestion doesn’t meet your requirement. Share us the exact reason of resetting predecessors. 
Regards, 
Monisha 


Marked as answer
Loader.
Up arrow icon