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

MVVM set value - text not updated to text field

4 Answers 25 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Matjaz
Top achievements
Rank 1
Matjaz asked on 21 Sep 2014, 05:53 PM
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.

4 Answers, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 23 Sep 2014, 03:02 PM
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!
 
0
Matjaz
Top achievements
Rank 1
answered on 23 Sep 2014, 05:03 PM
To bad. You should definitely consider including this feature also in kendoComboBox.
0
Matjaz
Top achievements
Rank 1
answered on 07 Oct 2014, 10:40 AM
I need same functionality for auto complete, where I can not use dropDownList.
How can I achieve that?
0
Petyo
Telerik team
answered on 08 Oct 2014, 10:58 AM
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!
 
Tags
AutoComplete
Asked by
Matjaz
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Matjaz
Top achievements
Rank 1
Share this question
or