Hi,
I'm trying to populate events in the scheduler however i cannot get the event items to show.
I have checked and the json that is returned looks like this:
{
"title": "Start up all PCs",
"start": "2013-06-06T08:00:00",
"end": "2013-06-06T08:05:00"
},
{
"title": "20 min test",
"start": "2013-06-06T08:05:00",
"end": "2013-06-06T08:25:00"
}
The scheduler setup looks like this:
$("#scheduler").kendoScheduler({
views: ["day"],
startTime: new Date("2013/6/6 08:00"),
endTime: new Date("2013/6/6 20:30"),
dataSource: {
batch: true,
transport: {
read: {
url: "Templates/getappointments/@Model.TemplateID",
dataType: "json"
},
parameterMap: function(options, operation) {
if (operation !== "read" && options.models) {
return {models: kendo.stringify(options.models)};
}
}
},
schema: {
model: {
fields: {
title: { from: "Title", defaultValue: "No title", validation: { required: true } },
start: { type: "date", from: "Start" },
end: { type: "date", from: "End" }
}
}
}
},
editable: false,
footer: false,
currentTimeMarker: false,
});
I have tried a lot of things however i cannot get the events to show.