text

Gets or sets the text of the DropDownList.

Parameters

text String

The text to set.

Returns

String The text of the DropDownList.

Example - set text of the widget

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

var dropdownlist = $("#dropdownlist").data("kendoDropDownList");

dropdownlist.text("Apples");
</script>
In this article