I'm trying to enable / disable a kendo datepicker based on the selected value of an select using Knockout-Kendo.js.
The HTML:
<select data-bind="value: test">
<option value="1">1</option>
<option value="2">2</option>
</select>
<input data-bind="kendoDatePicker: {value: date, enabled: test() == 2}" />
The JS:
ko.applyBindings({
date: ko.observable(),
test: ko.observable(),
});
The fiddle: http://jsfiddle.net/xTjqH/2/
It does initially disable the datepicker, but it wont enable it once "2" is selected.