I'm using Fullcalendar in my Asp.Net 1.1 application. For taking data from server side, I use Ajaxpro. So codes to gets events to Fullcalendar are written as below:
$calendar.fullCalendar({
editable: true,
selectable: true,
theme: true,
height: 545,
defaultView: 'agendaWeek',
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
events: function(start, end, callback) {
dss.user_activity.getActivities(function(doc) {
var events = [];
var obj = jQuery.parseJSON(doc.value);
$(obj.Head).each(function() {
events.push({
id: this.SQ_USER_ACTIVITY_ID,
title: this.CH_SUBJECT,
start: this.start,
end: this.end,
allDay: this.BL_ALL_DAY
});
});
callback(events);
});
}
});
But I have a problem that, When I drag an events which came from database and switch Calendar's view, all events go back to their default location.
I want changed events to protect their location, when I swtich the Calendar view.