Jak*_*sky 4 recurrence kendo-ui kendo-scheduler
我无法以标准化的方式在重复编辑器中隐藏一个选项.我试图通过自定义代码隐藏它,但它有时会产生不可预测的行为.
这就是我想隐藏的内容:

您需要处理调度程序的编辑事件并通过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();
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1535 次 |
| 最近记录: |