Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy