AngularJs simple dropdownlist

2 posts, 0 answers
  1. Jakub
    Jakub avatar
    24 posts
    Member since:
    Jun 2015

    Posted 24 Nov 2015 Link to this post


    Iam trying to make to work simple dropdownlist. Here is a link to example:


    I want to make it work so the value set to model on scope will be present in textbox of dropdownlist.

    Why I need this? I got a form where user can input FirstName, to speed it up for user I have a table with FirstNames ( not having any id as each FirstName is unique ). I dont wnat to use any nested models or data-text-value fields etc. The dropdown needs to be filterable so basicly there can be a case where model have FirstName that doesnt exists in DropDown datasource ( as I filter it using server filtering ). Also I have to use ng-model instead of k-ng-model because I have validation that watches only ng-model.

     I tried many solutions but none of them worked. Is it possible what I am asking for?

  2. Konstantin Dikov
    Konstantin Dikov avatar
    2087 posts

    Posted 25 Nov 2015 Link to this post

    Hello Jakub,

    I am afraid that selecting a value that will not exist in the DropDownList is not supported scenario and there is no workaround that could be suggested. As you could notice, if you set the "moze" value to be 'a' or 'b', the selection will work as expected:
    $scope.cos = { moze: 'a' }

    If any other questions arise on this matter, please feel free to contact us again.

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