how to implement more than one dependency in the same task

good night

It's almost all right in my example, I just need to know how I can define another dependency in a task.

I tried the dependencies: ['1FS, 4SS'], that is, mounting an array, but it didn't work.

Couldn't find an example ... yet. But someone could help me.

Thankful

1 Reply 1 reply marked as answer

GM Gopinath Muniraj Syncfusion Team July 13, 2020 09:45 AM UTC

Hi Carmem, 
Thanks for contacting Syncfusion support. 
We have analyzed your query. We can implement a data with multiple dependencies. If need to update it in load time, we can set the predecessor value in data source like, 
{ TaskID: 4, TaskName: 'Soil test approval', StartDate: new Date('04/02/2019'), Duration:4, Predecessor:"2SS,3FS", Progress: 50 }, 
 
We can update the predecessor a task by using updatePredecessor method. Please check the below code snippet, in this code we are updating the predecessor of data with ID 4. 
Code snippet: 
document.getElementById('pred').addEventListener('click', function () { 
        var id = parseInt(gantt.currentViewData[3].ganttProperties.taskId); 
        var predString = "2SS,3FS"; 
        gantt.updatePredecessor(id, predString); 
    }); 
 
We can also update the predecessor of a task by using cell edit and dialog edit in dependency tab. 
Please let us know if you need any further detail on this. 
Thanks, 
Gopinath M 


Marked as answer
Loader.
Up arrow icon