resources.field String (default: "resources")

The field of the gantt task which contains the assigned resource objects.

Example - specify the resource field

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
  dataSource: [{
    id: 0,
    orderId: 0,
    parentId: null,
    title: "Task1",
    start: new Date("2014/6/17 9:00"),
    end: new Date("2014/7/01 11:00")
  }],
  resources: {
    field: "taskResources",
    dataSource: [
      { id: 0, name: "Resource 1", color: "green", format: "p0" },
      { id: 1, name: "Resource 2", color: "#32cd32", format: "p0" }
    ]
  },
  assignments: {
    dataSource: [
      { taskId: 0, resourceId: 1, value: 1 }
    ]
  },
  views: ["week"],
  columns: [
    { field: "title", title: "Title" },
    { field: "taskResources", title: "Task Resources" }
  ]
});
</script>
In this article
Not finding the help you need?