Hi Team,
I am trying to bind JSON data to kendo scheduler. But unfortunately the JSON data i am getting from a rest service is not binding in Scheduler.
Below is the JSON i am getting from service:
[
{
"idschedule": 1,
"title": "Clark HAll",
"start": "2015-04-22T01:00:00.000Z",
"end": "2015-04-22T13:00:00.000Z"
},
{
"idschedule": 2,
"title": "Library",
"start": "2015-04-22T01:00:00.000Z",
"end": "2015-04-23T13:00:00.000Z"
}
]
JS
$(function() { $("#scheduler").kendoScheduler({ date: new Date(), startTime: new Date("2013/6/13 06:00 AM"), height: 600, views: [ "day", { type: "workWeek", selected: true }, "week", "month", "agenda", { type: "timeline", eventHeight: 50} ], editable:false, dataSource: { transport: { read: { url: "/viewSchedule", dataType: "json" }, parameterMap: function(options, operation) { if (operation !== "read" && options.models) { return {models: kendo.stringify(options.models)}; } } }, schema: { id: "taskId", model: { fields: { taskId: { from: "idschedule", type: "number" },
title: { from: "title", defaultValue: "No title"}, start: { type: "date", from: "start" }, end: { type: "date", from: "end" } } } } } });
});