How to make my kendo dropdown list readonly?

user7131132 picture user7131132 · Nov 10, 2016 · Viewed 7.8k times · Source

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.

Answer

Rajesh Grandhi picture Rajesh Grandhi · Nov 10, 2016

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