HTML
<select id ="multiSelect" data-bind="options: choices, selectedOptions: selectedChoice">
</select>
Selected: <strong data-bind="text: selectedChoice"> </strong>
Javascript
var ViewModel = function() {
this.choices = ko.observableArray(["apple", "orange", "banana"]);
this.selectedChoice = ko.observableArray();
};
var vm = new ViewModel()
ko.applyBindings(vm);
vm.choices.push("watermelon");
$("#multiSelect").kendoMultiSelect().data("kendoMultiSelect");
vm.choices.push("strawberry");
I'm somewhat new to knockout binding. Can anyone explain to me why strawberry does not show up in the multiselect drop down box?
Here's the jsfiddle: