Edit this page

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);
  console.log(dependency.type);
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy