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>
In this article