Hi, reopening an old post here, I tried the sample code for setting the background color of the event on dataBound event but in a recurring event only the first event in the occurrence is set to red background.Each event has a unique id, is this an issue with recurring events? Is there a workaround?
function scheduler_dataBound(e) {
//Handle the dataBound event.
var view = this.view();
var events = this.dataSource.view();
var eventElement;
var event;
for (var idx = 0, length = events.length; idx < length; idx++) {
event = events[idx];
//get event element
eventElement = view.element.find("[data-uid=" + event.uid + "]");
//if (event.IsPublished) {
// eventElement.css("background-color", "green");
//}
//else {
// //set the backgroud of the element
// eventElement.css("background-color", "red");
//}
eventElement.css("background-color", "red");
}
}