【问题标题】:Kendo UI Scheduler Event LinkKendo UI 调度程序事件链接
【发布时间】:2014-12-22 15:32:33
【问题描述】:

点击事件时是否可以打开网址?我想将我的用户路由到包含与事件相关的详细信息的 url。

【问题讨论】:

    标签: kendo-ui kendo-scheduler


    【解决方案1】:

    是的,你可以。只需像这样处理调度程序的change 事件:

    $("#scheduler").kendoScheduler({
          change: function (e) {
            e.preventDefault();                           // prevent the default action
            if (e.events.length > 0) {                    // if true then user clicked an event, not an empty slot
            window.location.href = 'stackoverflow.com';   // replace with the desired url
            }
          },
          // ... set other properties ...
    });
    

    e.events 是一个包含点击事件列表的数组。

    Kendo Scheduler Change Event

    【讨论】:

    • 艾哈迈德非常感谢您的回复。我可以通过邮件或其他方式联系到您吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-29
    • 1970-01-01
    • 2014-02-27
    • 2013-09-30
    • 1970-01-01
    • 2014-07-28
    相关资源
    最近更新 更多