4
votes

I am unable to get the following example working in IE9. The drop down list does not enable or disable.

Using AngularJS v1.2.22 and Kendo UI v2014.2.903

Any help would be much appreciated.

HTML:

<div kendo-drop-down-list k-data-source="names" ng-model="selected" ng-disabled="disabled">
</div> 
<label>ng-disable 
   <input type="checkbox" ng-model="disabled" /> 
</label> 
<div kendo-drop-down-list k-data-source="names" ng-model="selected" k-enable="enabled">
</div> 
<label>k-enable 
   <input type="checkbox" ng-model="enabled" /> 
</label> 
<pre>DISABLED: {{disabled}} ENABLED: {{enabled}}</pre>

JS:

$scope.names = ['Option 1', 'Option 2', 'Option 3'];
$scope.enabled = true;
2
ng-disabled="disabled" is what you have on your markup, but $scope.enabled = true is what you have in your code - sma
$scope.disabled = true; could also be in the js code, it is not required as the model value will be initialised when the check box is clicked. - gman7911

2 Answers

4
votes

Kendo's Dropdown List and Combobox does seem to have trouble binding to ng-disabled in IE9.

I have a workaround. Details are here. Complete with Plunker code.

Basically,

  1. you have to manually watch for whatever is inside the ng-disabled attribute yourself.
  2. Then call the enable() function of Kendo's Combobox yourself. Dropdown Lists should work similarly.

hth

4
votes

For those coming on this page after 2015, Kendo added the custom attributes k-ng-disabled and k-ng-readonly, as described here:

http://docs.telerik.com/kendo-ui/AngularJS/introduction#state-changes