Hi, I am testing the scheduler. I just set my code like the demo:
The scheduler shows well. But the event don't be loaded from server.
The read URL returns this data:
[{"TaskID":4,"OwnerID":2,"Title":"Bowling tournament","Description":"","StartTimezone":null,"Start":"11/17/2014 12:00:00 AM","End":"11/17/2014 12:00:00 AM","EndTimezone":null,"RecurrenceRule":null,"RecurrenceID":null,"RecurrenceException":null,"IsAllDay":false}]
Note that this is just like the demo.
But no event showed, just nothing.
It take me over 5 hours, I really don't know what happened.
yours,
Ivan
jQuery("#workcalendar").kendoScheduler({
date: new Date(), // The current date of the scheduler
selectable: true,
snap: false,
views: [
{
type: "month",
},
{
type: "day"
},
{
type: "week"
}
,
{
type: "agenda"
}
]
,
dataSource:
{
batch: true,
transport:
{
read:
{
url: "KPIGetData/DimData.aspx?SearchInput=schedulerevent",
dataType: "json",
data: {"SearchValue":CurrentUserID,"StartTime":SearchTimeStart,"EndTime":SearchTimeEnd}
}
}
,
schema:
{
model:
{
id: "taskId",
fields:
{
taskId: { type: "number", from: "TaskID"},
title: { from: "Title"},
start: { type: "date", from: "Start" },
end: { type: "date", from: "End" },
description: { from: "TaskScript" },
recurrenceId: { from: "RecurrenceID" },
recurrenceRule: { from: "RecurrenceRule" },
recurrenceException: {from:"RecurrenceException"},
ownerId: {from: "OwnerID", defaultValue: 1},
isAllDay: {type: "boolean",from:"IsAllDay"}
}
}
},
error: function(e) {
alert(e.errors);
}
}
});
The scheduler shows well. But the event don't be loaded from server.
The read URL returns this data:
[{"TaskID":4,"OwnerID":2,"Title":"Bowling tournament","Description":"","StartTimezone":null,"Start":"11/17/2014 12:00:00 AM","End":"11/17/2014 12:00:00 AM","EndTimezone":null,"RecurrenceRule":null,"RecurrenceID":null,"RecurrenceException":null,"IsAllDay":false}]
Note that this is just like the demo.
But no event showed, just nothing.
It take me over 5 hours, I really don't know what happened.
yours,
Ivan