Hi,
I am loading all my events via AJAX/JSON and add them to my scheduler. After moving an event in the scheduler the new date (start, end, resource) will be saved in the backend. That works perfect.
But when I load then again the events via AJAX/JSON (onScroll event), my moved event is added again to the scheduler. So the result is, that I see this event twice. All other (unmoved) events are still displayed only once.
What is the trick I am missing?
Here is the code how the events will be added after loading the JSON from the server, nothing special:
args.async = true;
var events = [];
$.each(data, function (i, row) {
var e = {
start: row.start
,end: row.end
,id: row.id
,resource: row.kennzeichen
,text: row.title
,backColor: row.color
};
events.push(e);
});
args.events = events;
args.loaded();
Regards,
Michael