readonly

Controls whether the widget is editable or readonly.

Example

<input id="dropdownlist" />
<script>
$("#dropdownlist").kendoDropDownList({
  dataSource: [
    { id: 1, name: "Apples" },
    { id: 2, name: "Oranges" }
  ],
  dataTextField: "name",
  dataValueField: "id",
  index: 1
});

// get a reference to the dropdownlist widget
var dropdownlist = $("#dropdownlist").data("kendoDropDownList");

// makes dropdownlist readonly
dropdownlist.readonly();

// makes dropdownlist editable
dropdownlist.readonly(false);
</script>

Parameters

readonly Boolean

The argument, which defines whether the DropDownList should be readonly or editable.

In this article