resources.dataTextField String (default: "text")

The field of the resource data item which represents the resource text.

Example - set the resource data text 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: {
    dataTextField: "resource",
    dataSource: [
      { id: 0, resource: "Resource 1", color: "green" },
      { id: 1, resource: "Resource 2", color: "#32cd32" }
    ]
  },
  assignments: {
    dataSource: [
      { taskId: 0, resourceId: 1, value: 1 }
    ]
  },
  views: ["week"]
});
</script>
In this article