Hi Samantha,
We cannot update parent-child relationship by using the public method updateRecordByID method. As we update the tasks based on column fields.
Instead, we can modify the data source as like below code example and refresh the Gantt.
methods: {
update: function () {
var obj = document.getElementById("Gantt").ej2_instances[0];
var data = extend([], obj.dataSource, true);
data[4].parentID = 4;
obj.dataSource = data;
},
}, |
Regards,
Pooja K.