是否可以禁用 DropDownList 中的条目? 例如,我可以阻止用户选择“请选择”条目。
最佳答案
Kendo 目前不支持此类功能,但这是我发现的禁用 Kendo Dropdown 中的选项的最简单的方法。
$("#" + id + "_listbox .k-item")[index].disabled = true;
where id -> 下拉列表的 ID
index -> 您要禁用的下拉列表中元素的位置。
希望有帮助。享受吧:)
关于kendo-ui - Kendo UI 下拉列表 : Is it possible to disable just one option?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18247713/