predecessorId String|Number|Object

The mandatory id of the predecessor task.

Example - set the predecessorId of a dependency

<script>
var dependency = new kendo.data.GanttDependency({
    id: 1,
    predecessorId: 1,
    successorId: 2,
    type: 0
});
</script>
In this article