setDataSource

Sets the dataSource of an existing ComboBox and rebinds it.

Parameters

dataSource kendo.data.DataSource

Example

<input id="combobox" />
<script>
$("#combobox").kendoComboBox({
  dataSource: [ "Apples", "Oranges" ]
});
var dataSource = new kendo.data.DataSource({
  data: [ "Bananas", "Cherries" ]
});
var combobox = $("#combobox").data("kendoComboBox");
combobox.setDataSource(dataSource);
</script>
In this article