在Kendo Scheduler中的可编辑模板上动态更改editRecurringMode [英] Change editRecurringMode dynamically on editable template in kendo scheduler

查看:57
本文介绍了在Kendo Scheduler中的可编辑模板上动态更改editRecurringMode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编辑过去的重复事件时,我想在KendoUI Scheduler中跳过编辑重复"对话框(编辑系列"和编辑发生"的内容选项),在其他情况下,不应跳过编辑重复"对话框. /p>

示例代码:

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哪里

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())

    },

I want to skip the Edit Recurring dialog(which content options for "edit series" and "Edit occurrence" ) in KendoUI Scheduler while editing the past recurring events, and in other cases the Edit Recurring dialog should not be skipped.

example code:

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

Instead of:

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

解决方案

Ok, I have solved this problems change by kendo.all.min.js.This is wrong or right i dont know but i have solved my problems.In new version kedno.all.min.js where is

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

and i have replaced by this code"o.editRecurringMode(e):"dialog";"series"===a?n()" in kendo.all.min.js and i have pass param

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

            if (e.allowAddEdit) {

                return "dialog";

            }

            else {

                return "occurrence";
            }

        },   

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

    },

这篇关于在Kendo Scheduler中的可编辑模板上动态更改editRecurringMode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆