schema Object

The schema configuration of the GanttDependencyDataSource.

schema.model Object

The model configuration of the GanttDependencyDataSource. See GanttDependency for more information.

Example - configure the dependency data source model schema

<script>
var dataSource = new kendo.data.GanttDependencyDataSource({
  transport: {
    read: {
      url: "https://demos.telerik.com/kendo-ui/service/GanttDependencies",
      dataType: "jsonp"
    },
    destroy: {
      url: "https://demos.telerik.com/kendo-ui/service/GanttDependencies/Destroy",
      dataType: "jsonp"
    },
    create: {
      url: "https://demos.telerik.com/kendo-ui/service/GanttDependencies/Create",
      dataType: "jsonp"
    }
  },
  schema: {
    model: {
      id: "id",
      fields: {
        id: { from: "ID", type: "number" },
        predecessorId: { from: "PredecessorID", type: "number" },
        successorId: { from: "SuccessorID", type: "number" },
        type: { from: "Type", type: "number" }
      }
    }
  }
});
dataSource.fetch(function() {
  var dependency = this.at(0);
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(dependency.type);
});
</script>
In this article