gpt4 book ai didi

kendo-ui - Kendo UI - 从循环编辑器中隐藏 "End: Never"选项

转载 作者:行者123 更新时间:2023-12-04 08:46:36 24 4
gpt4 key购买 nike

我无法以标准化的方式在重复编辑器中隐藏一个选项。我试图通过自定义代码隐藏它,但它有时会产生不可预测的行为。

这就是我想要隐藏的:

enter image description here

最佳答案

您需要处理调度程序的编辑事件并通过 jQuery 隐藏该选项:

function scheduler_edit(e) {
// find the recurring dropdownlist
var dropdown = e.container.find("[data-role=dropdownlist]").data("kendoDropDownList");

// handle its change event
dropdown.unbind("change", hide_never);
dropdown.bind("change", hide_never);
}

function hide_never() {
// hide the <li> element that contains the "Never" radio option
$(".k-recur-end-never").closest("li").hide();
}

关于kendo-ui - Kendo UI - 从循环编辑器中隐藏 "End: Never"选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23860943/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com