selected value with Kendo UI DropDownList and angularJS

2 posts, 0 answers
  1. nicolas
    nicolas avatar
    7 posts
    Member since:
    Mar 2015

    Posted 27 Jul 2015 Link to this post


    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?

  2. Plamen Lazarov
    Plamen Lazarov avatar
    135 posts

    Posted 30 Jul 2015 Link to this post


    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

    Plamen Lazarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top