How to make my kendo dropdown list readonly?

妖精的绣舞 提交于 2019-12-11 05:19:58

问题


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);


来源:https://stackoverflow.com/questions/40521663/how-to-make-my-kendo-dropdown-list-readonly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!