Dates

When i dont provide a startdate and enddate for the date it is defaulting to 12/31/1969
Is there a way to not to show any date? And it is skewing the gantt chart


  'StartDate': new Date(epic.startDate),
              'EndDate': new Date(epic.endDate),



5 Replies 1 reply marked as answer

MS Monisha Sivanthilingam Syncfusion Team May 20, 2021 10:00 AM UTC

Hi Vin, 
 
Greetings from Syncfusion support. 
 
We would like to inform you of a few points about how the start date is calculated initially when adding a new task, if the start date and end date of the task is not mentioned. The duration will automatically be set as 1 timeline unit. 
 
Case 1: If you have entered the projectStartDate and projectEndDate, and have also populated the Gantt with data: The start date will be calculated based on the minimum start date of the tasks. 
 
Case 2: If you have not entered the projectStartDate and projectEndDate, but have populated the Gantt with data: In this situation also, the start date will be calculated based on the minimum start date of the tasks. 
 
Case 3: If you have entered the projectStartDate and projectEndDate, but have not populated the Gantt with data: The start date will be calculated based on the projectStartDate you have entered. 
 
Case 4: If you have not entered the projectStartDate and projectEndDate, and have also not populated the Gantt with data: The Gantt will render based on the current week, and the start date will be calculated to the first working day of the week. 
 
We checked in all the four above cases, however, we were not able to replicate the issue you reported. Please find the sample we used to validate your issue below. 
 
 
Please share some more details such as: 
  1. What version of Gantt Chart you are using ?
  2. Are you facing any console errors in your application ? If yes, please share a screenshot or the call stack of the error.
  3. Do you have some customizations in the actionBegin or actionComplete event related to CRUD operations in Gantt ?
  4. If possible, please modify the above sample to replicate the issue or share an issue reproducible sample of your own. You could also share a video replicating the issue.
 
Any information you can share will be useful to us in providing a solution to you. 
 
Regards, 
Monisha. 



VI vin May 21, 2021 01:05 AM UTC

The 'StartDate' and 'EndDate' are null
 <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"
                            [includeWeekend]="true"  
                            [highlightWeekends]="true" [toolbar]="toolbar"  taskMode="Custom" [enablePredecessorValidation]="false">
                        ejs-gantt>




One more Question
When i click the expand/collapse button, i am seeing error
'childRecords' of undefined




MS Monisha Sivanthilingam Syncfusion Team May 21, 2021 12:06 PM UTC

Hi Vin, 
 
Thank you for sharing the code snippets. 
 
However, we were still unable to replicate the issue you reported. We have prepared a sample with the codes you shared. Please find the sample from the below link. 
 
 
We have also recorded a video showing that the issue is not reproduced in our end. Please find the video from the below link. 
 
 
We have checked with the latest version of Gantt (i.e.), v19.1.64. Please share the version of Gantt you are using in your application. If possible, please modify the sample we shared to replicate the issue you reported. Or, please share a video replicating the issue. 
 
Regards, 
Monisha. 


Marked as answer

VI vin May 27, 2021 03:49 AM UTC

 "@syncfusion/ej2-angular-gantt""*",
 "@syncfusion/ej2-gantt""*",


MS Monisha Sivanthilingam Syncfusion Team May 31, 2021 01:41 PM UTC

Hi Vin, 
 
Thank you for sharing information about the versions you are using. 
 
However, we were still unable to replicate the issue you reported. We would like to inform you of a few points. 
 
  1. Please, ensure that the TaskId fields in your data are unique to every record.
  2. Are you using self-referential data or hierarchical data ?
  3. We suspect that the issue you faced may be related to your data mapping. Could you please share a few examples of the data you are using ?
 
We have attached the sample we used to validate your issue below.  
 
 
Please modify the sample to replicate the issue you reported or share an issue reproducible sample of your own. Or we could set up a meeting with you so that we may check your application in live and identify the source of your issue. 
 
Please get back to us with your available times, if you are interested in setting up a meeting. 
 
Regards, 
Monisha. 


Loader.
Up arrow icon