Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular Kendo Drop down

I am using angular-kendo ui for a number of components but have encountered an issue which I can't seem to resolve. I have the following angular select which works fine and binds the selected value to the ng-model correctly.

 <select ng-model="link.CompanyId" ng-options="obj.Id as obj.Name  for obj in link.PossibleCompanies"></select>

Then I add the kendo-drop-down-list argument to convert it to a Kendo DD and it stops binding the selected value of ng-model.

 <select kendo-drop-down-list ng-model="link.CompanyId" ng-options="obj.Id as obj.Name  for obj in link.PossibleCompanies"></select>

Can anybody point me in the right direction of a solution for me able to use the kendo ddl with angular and still have the selected value of ng-model bind to the list.

like image 481
Ketchup Avatar asked Mar 22 '26 13:03

Ketchup


1 Answers

I think you should try using k-ng-model and k-ng-options rather than ng-options and ng-model.

like image 74
Ritesh Kumar Avatar answered Mar 25 '26 10:03

Ritesh Kumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!