设置endTime时,我无法使调度程序正常工作 EndTime Documentation 即使在结束日期之后也会显示事件:
<script>
$("#scheduler").kendoScheduler({
date: new Date("2013/6/6"),
startTime: new Date("2013/6/6 08:00"),
endTime: new Date("2013/6/8 18:00"),
//views: ["day", "week"],
views: [{
type: "day",
startTime: new Date("2013/6/6 08:00"),
endTime: new Date("2013/6/6 18:00")
}, {
type: "week",
startTime: new Date("2013/6/6 08:00"),
endTime: new Date("2013/6/6 18:00")
}, ],
dataSource: [
{
id: 1,
start: new Date("2013/6/6 08:00 AM"),
end: new Date("2013/6/6 09:00 AM"),
title: "Interview",
//"recurrenceRule": "FREQ=DAILY", "recurrenceException": "",
},
{
id: 2,
start: new Date("2013/6/10 08:00 AM"),
end: new Date("2013/6/10 09:00 AM"),
title: "Interview",
//"recurrenceRule": "FREQ=DAILY", "recurrenceException": "",
}
]
});
答案 0 :(得分:0)
endTime
选项控制日视图和周视图中的结束时间显示。只考虑时间部分。您可以尝试min
和max
选项:
min: new Date("2013/6/6 08:00"),
max: new Date("2013/6/8 18:00")