resourcesObject

The configuration of the gantt resource(s). A gantt resource is optional metadata that can be associated with a gantt task.

Example

<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
    dataSource: [
        { id: 1, title: "Task 1", start: new Date("2023/1/1"), end: new Date("2023/1/5") }
    ],
    resources: {
        dataSource: [
            { id: 1, name: "Resource 1", color: "#ff6666" },
            { id: 2, name: "Resource 2", color: "#66ff66" }
        ],
        dataTextField: "name",
        dataColorField: "color"
    },
    assignments: {
        dataSource: [
            { taskId: 1, resourceId: 1, units: 1 }
        ]
    }
});
</script>
In this article
resourcesRelated Properties
Not finding the help you need?
Contact Support