If you group by resources and add resource item to data source, you have to set date in scheduler to display resource item added (scheduler.date(scheduler.date());).
Demo: http://dojo.telerik.com/eSodi
3 Answers, 1 is accepted
0
Alexander Popov
Telerik team
answered on 12 Nov 2014, 11:38 AM
Hi Pawel,
In order to render the new groups the Scheduler should redraw the view. Doing this automatically upon change in the resource's DataSource however, is not supported as it is not always the desired behavior. In case you prefer to render the resource groups automatically, then I would suggest subscribing to the Grid's change event. For example:
var rooms = new kendo.data.DataSource({
change: function(e){
var scheduler = $("#scheduler").data("kendoScheduler");
if(scheduler.view()){
scheduler.view(scheduler.view().name);
}
},
data: [
{ text: "Small meeting room", value: 1 },
{ text: "Big meeting room", value: 2 }
]
});
Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!