Gantt Chart dates

I am seeing wrong start and end dates in chat than what is in data
the issue i reported earlier, i was told to set taskMode to Custom, its happening for some dates

 this.projectStartDate = portfolio.startDate;
          this.projectEndDate = portfolio.endDate;

 <ejs-gantt id="TaskMode1" height="100%" [dataSource]="ganttData" [taskFields]="taskSettings"
                            readOnly=true [columns]="columns" [treeColumnIndex]="1" [dayWorkingTime]="dayWorkingTime" 
                            [splitterSettings]="splitterSettings" [timelineSettings]="timelineSettings"
                            [labelSettings]="labelSettings" [editSettings]="editSettings" [allowSelection]="true"
                            [projectStartDate]="projectStartDate" [projectEndDate]="projectEndDate" [includeWeekend]="true"
                            [highlightWeekends]="true" [toolbar]="toolbar" taskMode="Custom">
                        </ejs-gantt>





1 Reply

MS Monisha Sivanthilingam Syncfusion Team October 29, 2020 05:00 PM UTC

Hi Vin, 
 
Thank you for contacting Syncfusion Support. 
 
We have analysed your query and would like to inform you about a few behaviours in Gantt. We have three types of task scheduling modes, namely, Auto, Manual and Custom. We will explain in a few lines about these types of scheduling. 
 
  1. Auto: When the taskMode property is set as Auto, the start date and end date of all the tasks in the project will be automatically validated. That is, dates are validated based on various factors such as working time, holidays, weekends and predecessors. These tasks are represented in blue colour.
  2. Manual: When the taskMode property is set as Manual, the start date and end date of all the tasks in the project will be same as given in the data source. That is, dates are not validated based on various factors such as dependencies between tasks, holidays, weekends, working time. These tasks are represented in green colour.
  3. Custom: When the taskMode property is set as Custom, the scheduling mode for each tasks will be mapped from the data source field.
 
If all the child tasks are in Auto scheduling, then the parent task will also be of Auto scheduling type. From the images you shared, we can see that all the tasks are in Auto mode. Because of this, the dates are validated and the parent task’s dates are calculated based on the minimal start date of the child tasks. Which is why the tasks are not entered in the dates in the data source.If you want to avoid validation, you have to use Manual scheduling mode. 
 
For more information on Gantt Task Scheduling modes, please refer our Online Documentation and Samples. 
 
Regards, 
Monisha. 


Loader.
Up arrow icon