更改editRecurringMode动态地在剑道调度编辑tempalte [英] Change editRecurringMode dynamically on editable tempalte in kendo scheduler

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

问题描述

我想跳过编辑重复对话框(为编辑系列和编辑事件内容选项),而编辑在过去的重复事件,而在其他情况下,编辑重复对话不应该跳过KendoUI计划。

例如code:

 编辑:功能(E)
{
   如果(e.conditionisTrue)
   {
       editRecurringMode:对话
   }
   其他
   {
       editRecurringMode:发生,
   },
   模板:kendo.template($(#myCustomEditorTemplate)HTML())
}

而不是:

 编辑:
{
    editRecurringMode:对话
    模板:kendo.template($(#myCustomEditorTemplate)HTML())
}


解决方案

好吧,我已经解决了这个问题,通过kendo.all.min.js.This改变的是对或错我不知道,但我已经解决了我的problems.In新版本kedno.all.min.js哪里是

  o.editRecurringMode:对话,系列=== A N()(行没有50)?

和我有这个codeo.editRecurringMode(五):所取代对话;系列=== A N()?在kendo.all.min.js
和我通参数

 编辑:{
        // editRecurringMode:发生,
        // editRecurringMode:系列,
        editRecurringMode:功能(E){            如果(e.allowAddEdit){                返回对话;            }            其他{                返回事件;
            }        },        模板: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())

    },

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

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