KendoScheduler改变事件没有解雇

时间:2014-02-20 23:06:52

标签: kendo-ui kendo-scheduler

我遇到了Kendo Scheduler小部件的问题。该应用正在我们的应用中工作和加载数据,但不会触发更改事件。从示例into a fiddle复制了基本的调度程序设置,但仍然没有骰子。需要第二眼,谢谢。

参考文献:

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?');

1 个答案:

答案 0 :(得分:1)

显然,这是构建2013.2.918特有的问题。我升级到构建2013.3.1119,事件现在正在运行。