1
我在Kendo Scheduler小部件中遇到問題。該應用正在工作並在我們的應用中加載數據,但不會觸發更改事件。已經從演示into a fiddle中複製了基本的調度程序設置,但仍然沒有骰子。需要第二套眼睛,謝謝。KendoScheduler更改事件未觸發
參考文獻:
1. Kendo Scheduler Demo w events
2. Kendo Scheduler change event doc
<div id="displayEvent"></div>
<div id="apptList"></div>
==========================================
$('#apptList').kendoScheduler({
views: [
{ type: 'day', selected: true },
'week',
'month'
],
allDaySlot: false,
startTime: new Date(new Date().setHours(7, 0, 0, 0)),
selectable: true,
change: function (e) {
$('#displayEvent').text('Change called');
var start = e.start; //selection start date
var end = e.end; //selection end date
var slots = e.slots; //list of selected slots
var events = e.events; //list of selected Scheduler events
var message = "change:: selection from {0:g} till {1:g}";
if (events.length) {
message += ". The selected event is '" + events[events.length - 1].title + "'";
}
$('#displayEvent').text(message);
}
});
$('#displayEvent').text('Where are my events?');