Edit this page

setDataSource

Sets the dataSource of an existing MultiSelect and rebinds it.

Parameters

dataSource kendo.data.DataSource

Example

<select id="multiselect" multiple="multiple"></select>
<script>
$("#multiselect").kendoMultiSelect({
  dataSource: [ "Apples", "Oranges" ]
});
var dataSource = new kendo.data.DataSource({
  data: [ "Bananas", "Cherries" ]
});
var multiselect = $("#multiselect").data("kendoMultiSelect");
multiselect.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