I want to initialize the scheduler in the beginning of my app (in the jquery ready handler) and when I get a list of something comparable to "owners" in
http://demos.telerik.com/kendo-ui/web/scheduler/index.html
I want to set the resources.dataSource member (the one with Alex, Bob and Charlie, but in my case, there are some other owners, data coming from an ajax response).
I tried to create an array of items all having the members text, value and color, and then
but that did not change the possible "owners" of scheduler tasks.
I have also tried
and
with no luck.
http://demos.telerik.com/kendo-ui/web/scheduler/index.html
I want to set the resources.dataSource member (the one with Alex, Bob and Charlie, but in my case, there are some other owners, data coming from an ajax response).
I tried to create an array of items all having the members text, value and color, and then
var scheduler = $("#wScheduler").data("kendoScheduler");
scheduler.resources[0].dataSource = theArray;
scheduler.dataSource.sync();
but that did not change the possible "owners" of scheduler tasks.
I have also tried
var ds = new kendo.data.SchedulerDataSource({data:items});
scheduler.resources[0].dataSource = ds;
and
var ds = new kendo.data.DataSource({data:items});
scheduler.resources[0].dataSource = ds;
with no luck.