Task relationship between siblings like 1.2.5 (child of 1.2) and task 1.2.6 (child of 1.2) working fine.
But not able to set it in below cases.
1. Not able to set task relationship between task 1.2.1 (child of 1.2) and task 1.3 (sibling of 1.2)
2. Not able to set task relationship between task 1.4.1 (child of 1.4) and task 1.5.1 (child of 1.5)
Can you please help me with this
|
[app.component.html]
<ejs-gantt id="ganttDefault" height="450px" [dataSource]="data"
//……
</ejs-gantt>
[app.componenet.ts]
//……
this.data = [
//……
{
TaskID: 3,
TaskName: "Child Task 1.2",
StartDate: new Date("04/02/2019"),
Duration: 3,
subtasks: [
{
TaskID: 4,
TaskName: "Sub Child Task 1.2.1",
StartDate: new Date("04/02/2019"),
Duration: 2,
Progress: 30
},
{
TaskID: 5,
TaskName: "Sub Child Task 1.2.2",
StartDate: new Date("04/02/2019"),
Duration: 0
}
]
},
{
TaskID: 6,
TaskName: "Child Task 1.3",
StartDate: new Date("04/04/2019"),
Duration: 4,
Progress: 30,
Predecessor: "4FS" //Adding relation between task 1.2.1 (child of 1.2) and task 1.3 (sibling of 1.2)
},
{
TaskID: 7,
TaskName: "Child Task 1.4",
StartDate: new Date("04/04/2019"),
Duration: 4,
Progress: 30,
subtasks: [
{
TaskID: 8,
TaskName: "Sub Child Task 1.4.1",
StartDate: new Date("04/04/2019"),
Duration: 4,
Predecessor: "10SS" //Adding relation between task 1.4.1 (child of 1.4) and task 1.5.1 (child of 1.5)
}
]
},
{
TaskID: 9,
TaskName: "Child Task 1.5",
StartDate: new Date("04/06/2019"),
Duration: 4,
Progress: 30,
subtasks: [
{
TaskID: 10,
TaskName: "Sub Child Task 1.5.1",
StartDate: new Date("04/06/2019"),
Duration: 4
}
]
}
]
}
];
this.taskSettings = {
//……
dependency: "Predecessor"
};
|