I've got the below config, but when the data is returned, no appointments are showing up and the _currentAppointmentData shows both the StartTime and EndTime as "Invalid Date". I've inspected the data being returned, and the dates look fine - standard DateTime property with value 3/6/2018 12:00:00 AM, for example. I am also using a standard
return Json(results, JsonRequestBehavior.AllowGet). Please advise as to what the issue might be.
var dm = ej.DataManager({
url: "/Calendar/GetCalendarEvents",
adaptor: new ej.UrlAdaptor()
});
self.calendar = $("#globalCalendar").ejSchedule({
currentDate: new Date(),
currentView: ej.Schedule.CurrentView.Month,
allowDragAndDrop: false,
showCurrentTimeIndicator: false,
showAppointmentNavigator: false,
readOnly: true,
enableLoadOnDemand: true,
appointmentClick: function(args, e) {
args.cancel = true;
window.calendarEventId = args.appointment.Id;
},
appointmentSettings: {
dataSource: dm,
id: "Id",
subject: "Subject",
startTime: "StartTime",
endTime: "EndTime"
}
});