predecessorId String|Number|Object

The id of the predecessor task.

Example - get the dependency predecessorId field

<script>
var dependency = new kendo.data.GanttDependency({
    id: 1,
    predecessorId: 1,
    successorId: 2,
    type: 0
});
console.log(dependency.predecessorId); // outputs "1"
</script>
In this article
Not finding the help you need?