Edit this page

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.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy