dependencies

Returns a list of all dependencies for a certain task.

Parameters

id String|Number|Object

The id of the Gantt task, based on which the dependencies are filtered.

Returns

Array the list of all task dependencies.

Example - get all dependencies of a task

<script>
  var dataSource = new kendo.data.GanttDependencyDataSource({
    data: [
      {
        id: 1,
        predecessorId: 1,
        successorId: 2,
        type: 0
      },
      {
        id: 2,
        predecessorId: 2,
        successorId: 3,
        type: 0
      },
      {
        id: 3,
        predecessorId: 3,
        successorId: 1,
        type: 1
      }
    ]
  });

  dataSource.fetch();

  // returns dependencies 1 and 3
  var dependencies = dataSource.dependencies(1);
</script>
In this article
Not finding the help you need?