resourcesBySlot

Get the relevant resources for a given slot.

Parameters

slot Object

Returns

Object The relevant resources.

Example - get the relevant resources

<div id="scheduler"></div>
<script>
$("#scheduler").kendoScheduler({
  date: new Date("2013/6/6"),
  group: {
    resources: ["Rooms"]
  },
  resources: [
    {
        field: "roomId",
        name: "Rooms",
        dataSource: [
            { text: "Meeting Room 101", value: 1, color: "#6eb3fa" },
            { text: "Meeting Room 201", value: 2, color: "#f58a8a" }
        ]
    }
  ]
});
var scheduler = $("#scheduler").data("kendoScheduler");

var element = scheduler.view().content.find("tr:first td:first");

var slot = scheduler.slotByElement(element);

var resource = scheduler.resourcesBySlot(slot);

for (var key in resource) {
    console.log("resouce - {" + key + ": " + resource[key] + " }");
}

</script>
In this article
Not finding the help you need?