Overlapping between 2 tasks

Hello,

I'm tried to find something about this in this forum and in the documentation, but I didn't seen.

I'm trying to know if it is possible to overlap two different tasks with the ValidationMode in Auto. I assume, that in Manual mode, I can do whatever I want.

What I'm considering as an overlapped Task is this:


The predecessor of the Taks2 is the Taks1 in F-S, for example. Could be any of the options. But always I want to have one day of difference between the start of the Taks1 and the start of the Task2. If I move the Task1, automatically the Taks2 will move too, but I want to maintain the day of difference between both starts.

Does it possible to configure that in the Tasks?

Kind regards,
Jon


3 Replies 1 reply marked as answer

ET Eswaran Thirugnanasambandam Syncfusion Team September 30, 2021 12:19 PM UTC

Hi Jon Guerrero, 
 
Greetings from Syncfusion. 
 
We have checked your requirement and it can be achieved by using the Offset property in Predecessor and ValidationMode property of GanttControl. We need to provide Offset value based on its predecessor task’s duration as like the below code snippet.  
 
data[1].Child[1].Predecessor.Add(new Predecessor() { GanttTaskIndex = 7, GanttTaskRelationship = GanttTaskRelationship.FinishToStart, Offset = -4 }); 
 
Based on your requirement, we have prepared a sample to show both task to can maintain a day of difference between both starts. Please get it from the below link. 
 
 
 
Please check the sample and let us know if you need any further assistance.  
  
Regards, 
Eswaran 


Marked as answer

JG Jon Guerrero September 30, 2021 01:14 PM UTC

Hi Eswaran,


I really appreciate your fast answer.

You solved my question and with the example I saw it very clear. I also tested the behaviour changing different values. More than I expected.

Thank you,

Jon



RS Ramya Soundar Rajan Syncfusion Team October 1, 2021 06:28 AM UTC

Hi Jon Guerrero,  
 
Thanks for your update. Please let us know if you would require any further assistance. 
 
Regards, 
Ramya S 


Loader.
Up arrow icon