Gantt changes dates provided

Hi!

I have a problem with Dates, 
Gantt control changes startDate and endDate when it has dependency

Those are my task (In Spanish) that I want to show.
Column Dependencia=Dependency
Column Inicio = Start Date
Column Plazo = End Date




And this is the Gantt Table created


As you can see, Gantt control changes Dates automatically.

Is there any way to disable that "function"?

1 Reply

KR Karthikeyan Raja Syncfusion Team March 16, 2020 11:38 AM UTC

Hi Erick,  
  
Thanks for contacting Syncfusion support.  
When predecessor is mapped, dates are validated based on the predecessor values. To disable the predecessor validation, we need to disable the property enablePredecessorValidation. Also in Gantt, we are validating the dates based on various properties such as dayWorkingTime, workWeek, includeWeekend, holidays. To show the date as given in the data source, we need to make 24 hours as working day by specifying the range as 0 to 24 and also we need to enable includeWeekend property to make the weekends also as working days. When duration field is mapped, end dates are calculated based on the start date and duration. To show the end date as same as the date given in the data source we should not map duration field. Please refer the below code snippet for this. 
 
[app.component.html] 
<ejs-gantt id="ganttDefault"  
         [dayWorkingTime]="dayWorkingTime" [includeWeekend]="true" [enablePredecessorValidation]="false"> 
</ejs-gantt> 
 
[app.component.ts] 
export class AppComponent { 
       //... 
    public dayWorkingTime: object; 
    public ngOnInit(): void { 
       //... 
       this.dayWorkingTime = [{ from: 0, to: 24 }]; 
    } 
} 
  
Please find the below sample link.  
  
Please get back to us, if you need any further assistance on this  
  
Regards,  
Karthikeyan Raja  
 


Loader.
Up arrow icon