I am trying to enable / disable the kendo datepicker based on the selected select value using Knockout-Kendo.js.
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}" />
JS:
ko.applyBindings({
date: ko.observable(),
test: ko.observable(),
});
Violin: http://jsfiddle.net/xTjqH/2/
It initially disables the datepicker parameter, but it will not enable it after selecting "2".
sroes source
share