How to refresh data source and start and end date in EJ2 Gantt Chart>
gantt = new ej.gantt.Gantt({
dataSource: data,
renderBaseline: true,
taskFields: {
id: 'OrderNumber',
name: 'Title',
startDate: 'StartTime',
duration: 'EstimatedDurarion',
},
height: '450px',
width: '900px',
dayWorkingTime: [{ from: 0, to: 24 }],
projectStartDate: new Date('04/08/2019 12:00:00 AM'),
projectEndDate: new Date('04/08/2019 11:59:00 PM')
});
gantt.appendTo('#divGanttChart');
i have like this and i tried update data source like below
gantt.dataSource=newData;
gantt.dataBind();
Its not working and page was not responding after that.
Can some one help me to resolve this.
Thanks,
Tam