my simplified scheduler initialization looks like this:
var scheduler = $("#scheduler").kendoScheduler({
date: new Date("2013/6/13"),
startTime: new Date("2013/6/13 10:00"),
endTime: new Date("2013/6/13 23:00"),
height: 500,
views: ["day", "agenda", "week", "month"],
dataSource: {
transport: {
read: function(e) { e.success([]); },
update: function(e) { e.success(""); },
destroy: function(e) { e.success(""); },
create: function(e) { e.success(); }
},
schema: {
model: {
id: "taskID",
fields: {
taskID: { type: "number" },
title: { type: "string" },
start: { type: "date", from: "ST" },
end: { type: "date", from: "EN" },
isAllDay: { type: "boolean" },
}
}
}
}
}).data("kendoScheduler");
Example data block looks like:
{
taskID: 1,
title: "title",
ST: new Date("2013/6/13 17:00"),
EN: new Date("2013/6/13 18:30"),
isAllDay: false
}
I am adding new elements to my Scheduler via "dataSource.add" and the problem is that when a new element is added to the dataSource it creates the "start" and "end" dates taking the current computer time instead of reading the "ST" and "EN" fields. /like defined in the schema.model.fields "from" parameter/.
This actually happens with any other field. "From" is being completely ignored.
Thanx for the help