When I add a new event programmatically:
var
scheduler = $(
"#Scheduler"
).data(
"kendoScheduler"
);
scheduler.dataSource.add(newEvent);
In cases where I do not assign an ID to a new event, the Create method is called instantly upon adding the new event, which is great; no problems there.
When I do assign an ID, the Update event is not fired, which is a bit unexpected. If the new event is moved or resized then the appropriate event is fired, but I would like to immediately call the Update function with the newly added event.
I have tried:
scheduler.dataSource.sync()
...but this does not work; the Update method is not called.
If I dig in to the data itself, pick out the relevant event, and call the update function, for example:
scheduler.data()[1].update()
Still no luck, no update method is called. I'm stumped.
How do I trigger an Update for a newly added event?
#MagiCSS-bookmarklet,html>body #MagiCSS-bookmarklet{display: block;} #MagiCSS-bookmarklet .cancelDragHandle{cursor: default;}