Hi
I have following example (modified original demo from Kendo Scheduler):
http://dojo.telerik.com/AkIGO
In this example I create a data array with two events which are displayed properly on the scheduler view on the right side.
var data = [{ TaskID: 0, OwnerID: 1, Title: "Bowling tournament 6", Start: "2013-06-10T10:30:00", End: "2013-06-10T11:30:00", IsAllDay: false},{ TaskID: 1, OwnerID: 2, Title: "Golf", Start: "2013-06-11T10:30:00", End: "2013-06-11T11:30:00", IsAllDay: false}];
I have included a button, which event I catch and then extend this "data" array with one more element like this:
data.push({ TaskID: 2, OwnerID: 3, Title: "New Event", Start: "2013-06-12T10:30:00", End: "2013-06-12T11:30:00", IsAllDay: false});
console.log(data);
The console.log of the array confirms the addition. I hence call the following refresh code:
$("#scheduler").data("kendoScheduler").refresh();
...which does not update my scheduler view on the right to include the new event (created for wednesday 6/12).
I have also tried:
$('#scheduler').data('kendoScheduler').dataSource.read();
but this results in an error.
Any ideas?
I have following example (modified original demo from Kendo Scheduler):
http://dojo.telerik.com/AkIGO
In this example I create a data array with two events which are displayed properly on the scheduler view on the right side.
var data = [{ TaskID: 0, OwnerID: 1, Title: "Bowling tournament 6", Start: "2013-06-10T10:30:00", End: "2013-06-10T11:30:00", IsAllDay: false},{ TaskID: 1, OwnerID: 2, Title: "Golf", Start: "2013-06-11T10:30:00", End: "2013-06-11T11:30:00", IsAllDay: false}];
I have included a button, which event I catch and then extend this "data" array with one more element like this:
data.push({ TaskID: 2, OwnerID: 3, Title: "New Event", Start: "2013-06-12T10:30:00", End: "2013-06-12T11:30:00", IsAllDay: false});
console.log(data);
The console.log of the array confirms the addition. I hence call the following refresh code:
$("#scheduler").data("kendoScheduler").refresh();
...which does not update my scheduler view on the right to include the new event (created for wednesday 6/12).
I have also tried:
$('#scheduler').data('kendoScheduler').dataSource.read();
but this results in an error.
Any ideas?