I have a dropdownlist and i need to make it read only when user opens the page.But it needs to be enabled after click on edit icon.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can do the following:
var dataSource = $("#dropdownElement").data("kendoDropDownList");
To make kendo dropdown read only:
dataSource.readonly();
To remove read only to kendo dropdown:
dataSource.enable(true);