5 Answers, 1 is accepted
0
Hello Piotr,
Please use k-ng-model directive instead of only ng-model. I modified your example http://dojo.telerik.com/eMepO/13 and now it works fine. Here you can find more information about this change.
Regards,Boyan Dimitrov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Piotr
Top achievements
Rank 1
answered on 27 Mar 2015, 02:16 PM
Hello,
This solution does not satisfy me because angular validation will not work properly with k-ng-model (which works perfectly with other kendo inputs that can use safely ng-model). For example adding ng-required='true' will not make form invalid if you do not select value in dropdown.
Why can not we use ng-model properly with kendo dropdowns?
This solution does not satisfy me because angular validation will not work properly with k-ng-model (which works perfectly with other kendo inputs that can use safely ng-model). For example adding ng-required='true' will not make form invalid if you do not select value in dropdown.
Why can not we use ng-model properly with kendo dropdowns?
0
Hello Piotr,
The k-ng-model directive was introduced, because ng-model sets/gets the value of the underlying input element directly instead using the value method of the widgets, which in some cases break the widget behavior.
In this particular case, the ng-model didn't work because of a bug in the DropDownList. The latest internal build seems to work as expected with ng-model too. I would suggest you upgrade to the latest internal build that is available in your Telerik account and let us know if the problem still persists.
Regards,
Georgi Krustev
Telerik
The k-ng-model directive was introduced, because ng-model sets/gets the value of the underlying input element directly instead using the value method of the widgets, which in some cases break the widget behavior.
In this particular case, the ng-model didn't work because of a bug in the DropDownList. The latest internal build seems to work as expected with ng-model too. I would suggest you upgrade to the latest internal build that is available in your Telerik account and let us know if the problem still persists.
Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Piotr
Top achievements
Rank 1
answered on 03 Jul 2015, 08:35 AM
Hello, the newest kendo version works fine with remote data source & ng-model. But if I will use local data source then I will have the same problem like before (adding option label will make it work)
See example:
http://dojo.telerik.com/eMepO/19
0
Hello Piotr,
Indeed this is a misbehavior and I logged it as a bug in GitHub. You can use the following link in order to track the issue progress.
Regards,
Boyan Dimitrov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!