【问题标题】:How to catch empty cell click event in KendoUI Scheduler control如何在 Kendo UI Scheduler 控件中捕获空单元格单击事件
【发布时间】:2014-10-16 19:21:39
【问题描述】:

我正在使用下面的代码来捕捉 Kendo 调度程序事件的点击事件。

      $(document).on("click", ".k-event", function (e) {......

但只有当我点击调度程序上的“项目/事件”时才会触发。我想捕捉空单元格点击的事件。

这样写,但是没有用

      $(document).on("click", ".k-nonwork-hour", function (e) {
          alert(d);
      });

【问题讨论】:

    标签: javascript kendo-ui kendo-scheduler


    【解决方案1】:

    您可以在选项中添加 onEdit 处理程序:

    edit: function(editEvent){
      if(editEvent.event.isNew()){
       editEvent.preventDefault(); // to stop edit dialog from appearing
       // call you custom code here:
      }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多