Here is the relevant code:
<select id="ticket" style="vertical-align: middle" data-bind="options:
tickets,
optionsCaption: 'Choose...',
optionsText: 'name',
optionsValue: 'price',
value: chosenTicket">
</select>
var viewModel = {
tickets: ko.observableArray([
{ name: "Economy", price: 199.95 },
{ name: "Business", price: 449.22 },
{ name: "First Class", price: 1199.99 }
]),
chosenTicket: ko.observable(),
resetTicket: function() { this.chosenTicket(null) }
};
ko.applyBindings(viewModel);
$("#ticket").kendoDropDownList(); // here is my
Here is a demo showing what I am after http://jsfiddle.net/korchev/UVaKQ/35/
If you remove an item from the tickets both selects update as they
should (the corresponding <option> is removed). However my plugin is
not aware of this and shows the older (removed) option. I would love
to find a way to get notified about that change somehow.