This is a migrated thread and some comments may be shown as answers.

selected value with Kendo UI DropDownList and angularJS

1 Answer 1840 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
nicolas
Top achievements
Rank 1
nicolas asked on 27 Jul 2015, 04:05 PM
H​i,

When using kendo-drop-down-list with ​AngularJs the DropDownList does not take the value of ng-model associated. In addition, the ng-model is modified by the dropdownlist value and takes as the first entry in the list:

  <select id ='ddl_general_qualite' kendo-drop-down-list k-ng-model = "mvEdit.CodeQualite"  k-data-source = "Qualite"  k-data-value-field = "' Code '" k-data-text-field = "'Libelle'"> </ select>


Do you have a solution for the drop down list as well take the value of the selected value ng-model?

thanks.

1 Answer, 1 is accepted

Sort by
0
Plamen Lazarov
Telerik team
answered on 30 Jul 2015, 07:22 AM

Hi,

Thank you for getting in touch and please excuse us for the late reply.

I see that in your code k-ng-model is used instead of ng-model. In this case you should use k-value-primitive as well in order to achieve the expected result. Also I would suggest to take a look at this help article for more information about scope bindings. 

For convenience here is a basic example

Regards,
Plamen Lazarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DropDownList
Asked by
nicolas
Top achievements
Rank 1
Answers by
Plamen Lazarov
Telerik team
Share this question
or