Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145160 | Jun 10,2019 07:49 PM UTC | Jun 11,2019 01:18 PM UTC | ASP.NET Core - EJ 2 | 1 |
![]() |
Tags: Gantt Chart |
<button id="updateData">Update Data</button>
var ganttChart = new ej.gantt.Gantt({
dataSource: projectNewData,
height: '450px',
allowSelection: true,
//..
});
document.getElementById('updateData').addEventListener('click', () => {
var GanttData = [
{
TaskID: 1,
TaskName: 'Project Initiation',
StartDate: new Date('04/02/2019'),
EndDate: new Date('04/21/2019'),
subtasks: [
{ TaskID: 2, TaskName: 'Identify Site location', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
{ TaskID: 3, TaskName: 'Perform Soil test', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 },
{ TaskID: 4, TaskName: 'Soil test approval', StartDate: new Date('04/02/2019'), Duration: 4, Progress: 50 }
]
}
];
setTimeout(function () {
ganttChart.dataSource = GanttData; // Binding new dataSource
}, 1000)
});
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.