Edit this page

text

Gets or sets the text of the ComboBox. Widget will select the item with same text. If there are no matches then the text will be considered as a custom value of the widget.

Important: When the autoBind option is set to false, the widget will update only the selected text. The widget will stay unbound.

Important: This method does not trigger change event. This could affect MVVM value binding. The model bound to the widget will not be updated. You can overcome this behavior trigerring the change event manually using trigger("change") method.

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

var combobox = $("#combobox").data("kendoComboBox");
combobox.text("Apples");
combobox.trigger("change");
</script>

Parameters

text String

The text to set.

Returns

String The text of the ComboBox.

Example - set text of the widget

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

var combobox = $("#combobox").data("kendoComboBox");

combobox.text("Apples");
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy