在Kendo Scheduler中的可编辑模板上动态更改editRecurringMode [英] Change editRecurringMode dynamically on editable template in kendo scheduler
问题描述
在编辑过去的重复事件时,我想在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屋!