MVVM set value - text not updated to text field

5 posts, 1 answers
  1. Matjaz
    Matjaz avatar
    94 posts
    Member since:
    Jun 2014

    Posted 21 Sep 2014 Link to this post

    On some user event I want to select option by id. I manage to do it with MVVM, but the input text is not updated to data-field-value but remains a data-value-field.

    It is hard to explain, so I prepare a demo. Just wait for 2 seconds. The text is 1, but it should be option 1.
  2. Answer
    Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 23 Sep 2014 Link to this post

    Hi Matjaz,

    the Autocomplete widget does not support this behavior. Unlike the dropdownlist, it does not have the concept of a data value field configuration as it accepts free text input. In case you want to implement that behavior, you may consider using the dropdownlist widget instead. 

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Matjaz
    Matjaz avatar
    94 posts
    Member since:
    Jun 2014

    Posted 23 Sep 2014 Link to this post

    To bad. You should definitely consider including this feature also in kendoComboBox.
  5. Matjaz
    Matjaz avatar
    94 posts
    Member since:
    Jun 2014

    Posted 07 Oct 2014 Link to this post

    I need same functionality for auto complete, where I can not use dropDownList.
    How can I achieve that?
  6. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 08 Oct 2014 Link to this post

    Hello Matjaz,

    This behavior is not supported by the AutoComplete widget. You may choose some of the other widgets (ComboBox, or MultiSelect) for that purpose.  

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready