Hello,
I'm using scheduler timeline (http://demos.telerik.com/kendo-ui/scheduler/timeline).
When i try to add some dynamic data to scheduler datasource and resources, chrome console returns me error "Uncaught TypeError: Cannot read property '_continuousEvents' of undefined"
var s = $("#appointmentScheduler").data('kendoScheduler');
var d = {
AppointmentId: data.GetAppointmentsForContactsResult.AppointmentData[i].AppointmentId,
title: data.GetAppointmentsForContactsResult.AppointmentData[i].Title,
datas: data.GetAppointmentsForContactsResult.AppointmentData[i].Data,
start: parseDateFromWCF(data.GetAppointmentsForContactsResult.AppointmentData[i].StartDate),
end: parseDateFromWCF(data.GetAppointmentsForContactsResult.AppointmentData[i].EndDate),
endTimezone: undefined,
startTimezone: undefined,
recurrenceException: undefined,
recurrenceRule: undefined,
description: undefined
};
s.dataSource.add(d);
var tmp = [];
tmp.push(self.contacts());
tmp.push(selected);
self.contacts(tmp);
self.groupDataSourceUpdate();
s.resources[0].dataSource.data(self.groupingDataSource());
s.refresh();
Filled data looks like:
var
d = {
AppointmentId:10,
title:
"test"
,
datas: [3],
start: Tue Dec 22 2015 13:00:00 GMT+0100 (Central European Standard Time),
end: Tue Dec 22 2015 14:00:00 GMT+0100 (Central European Standard Time),
endTimezone: undefined,
startTimezone: undefined,
recurrenceException: undefined,
recurrenceRule: undefined,
description: undefined
};
s.dataSource.add(d);
var
tmp = [];
tmp.push(self.contacts());
tmp.push([{text:
"test"
, value: 3}]);
self.contacts(tmp);
self.groupDataSourceUpdate();
s.resources[0].dataSource.data(self.groupingDataSource());
s.refresh();