【问题标题】:Change editRecurringMode dynamically on editable template in kendo scheduler在 kendo 调度程序的可编辑模板上动态更改 editRecurringMode
【发布时间】:2015-09-10 12:53:11
【问题描述】:

我想在编辑过去的重复事件时跳过 KendoUI 调度程序中的“编辑重复出现”对话框(“编辑系列”和“编辑发生”的内容选项),在其他情况下不应跳过“编辑重复出现”对话框。

示例代码:

editable: function(e)
{
   if(e.conditionisTrue)
   {
       editRecurringMode: "dialog"
   }
   else
   {
       editRecurringMode: "occurrence",
   },
   template: kendo.template($("#myCustomEditorTemplate").html())
}

代替:

editable: 
{
    editRecurringMode: "dialog",
    template: kendo.template($("#myCustomEditorTemplate").html())
}

【问题讨论】:

  • 好的,我已经解决了这个由 kendo.all.min.js 更改的问题。这是对还是错我不知道,但我已经解决了我的问题。在新版本 kedno.all.min.js在editRecurringMode(e)中添加功能,我已经像这样传递参数

标签: angularjs kendo-ui kendo-asp.net-mvc kendo-scheduler


【解决方案1】:

好的,我已经通过 kendo.all.min.js 解决了这个问题。这是对还是错我不知道,但我已经解决了我的问题。在新版本中,kedno.all.min.js 在哪里

o.editRecurringMode:"dialog";"series"===a?n()(line no 50) 

我已经用 kendo.all.min.js 中的代码"o.editRecurringMode(e):"dialog";"series"===a?n()" 替换 我通过了参数

editable: {
        //editRecurringMode: "occurrence",
        //editRecurringMode: "series",
        editRecurringMode: function (e) {

            if (e.allowAddEdit) {

                return "dialog";

            }

            else {

                return "occurrence";
            }

        },   

        template: kendo.template($("#customEditorTemplate").html())

    },

【讨论】:

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