$("#scheduler").kendoScheduler({
timezone: "Etc/UTC", //still it gives pacific?
date: selectedDate,
....
why?
I have the
src="/Scripts/kendo.all.min-2.js"
in it too.
This is on an update and save, does my datasource need to change:
dataSource: {
batch: true,
transport: {
read: {
url: baseURL + "?mode=read",
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8"
},
update: {
url: baseURL + "?mode=update",
dataType: "json",
type: "POST",
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
complete: function (e) {
//need to reload because of the timezone problems
$("#scheduler").data("kendoScheduler").dataSource.read();
}
},
create: {
url: baseURL + "?mode=create",
dataType: "json",
type: "POST",
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
complete: function (e) {
$("#scheduler").data("kendoScheduler").dataSource.read();
}
},
destroy: {
url: baseURL + "?mode=destroy",
dataType: "json",
type: "POST",
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
complete: function (e) {
$("#scheduler").data("kendoScheduler").dataSource.read();
}
},
parameterMap: function (options, operation) {
if (operation !== "read" && options.models) {
return { models: options.models };
}
}
},
options: {
model: {
id: "taskId",
fields: {
taskId: { from: "TaskID", type: "number" },
title: { from: "Title", defaultValue: "No title", validation: { required: true} },
start: { type: "date", from: "Start" },
end: { type: "date", from: "End" },
ownerId: { from: "OwnerID", defaultValue: 1 }
}
}
},
schema: {
model: {
id: "taskId",
fields: {
taskId: { from: "TaskID", type: "number" },
title: { from: "Title", defaultValue: "No title", validation: { required: true} },
start: { type: "date", from: "Start" },
end: { type: "date", from: "End" },
ownerId: { from: "OwnerID", defaultValue: 1 }
}
}
}
},
timezone: "Etc/UTC", //still it gives pacific?
date: selectedDate,
....
why?
I have the
src="/Scripts/kendo.all.min-2.js"
in it too.
This is on an update and save, does my datasource need to change:
dataSource: {
batch: true,
transport: {
read: {
url: baseURL + "?mode=read",
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8"
},
update: {
url: baseURL + "?mode=update",
dataType: "json",
type: "POST",
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
complete: function (e) {
//need to reload because of the timezone problems
$("#scheduler").data("kendoScheduler").dataSource.read();
}
},
create: {
url: baseURL + "?mode=create",
dataType: "json",
type: "POST",
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
complete: function (e) {
$("#scheduler").data("kendoScheduler").dataSource.read();
}
},
destroy: {
url: baseURL + "?mode=destroy",
dataType: "json",
type: "POST",
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
complete: function (e) {
$("#scheduler").data("kendoScheduler").dataSource.read();
}
},
parameterMap: function (options, operation) {
if (operation !== "read" && options.models) {
return { models: options.models };
}
}
},
options: {
model: {
id: "taskId",
fields: {
taskId: { from: "TaskID", type: "number" },
title: { from: "Title", defaultValue: "No title", validation: { required: true} },
start: { type: "date", from: "Start" },
end: { type: "date", from: "End" },
ownerId: { from: "OwnerID", defaultValue: 1 }
}
}
},
schema: {
model: {
id: "taskId",
fields: {
taskId: { from: "TaskID", type: "number" },
title: { from: "Title", defaultValue: "No title", validation: { required: true} },
start: { type: "date", from: "Start" },
end: { type: "date", from: "End" },
ownerId: { from: "OwnerID", defaultValue: 1 }
}
}
}
},