在剑道调度程序中的可编辑模板上动态更改 editRecurringMode [英] Change editRecurringMode dynamically on editable template in kendo scheduler

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

问题描述

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

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.

示例代码:

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

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) 

并且我在kendo.all.min.js中用这个代码替换了o.editRecurringMode(e):"dialog";series"===a?n()"我有传递参数

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

    },

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

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