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

Potential bug or inconsistency - remote binding example

1 Answer 39 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Felipe Casanova
Top achievements
Rank 1
Felipe Casanova asked on 23 May 2012, 08:00 PM
Referring to this example in the docs...

http://demos.kendoui.com/web/mvvm/remote-binding.html 

The selectedProduct in the viewModel gets set when the dropdownlist value changes. If you change this example and replace the dropdownlist with an autocomplete then it doesn't work. The selectedProduct gets set to the value of the data-text-field (the product name). Is this a bug or an inconsistency? Either way, it really should be changed so that value is the data item from the datasource i.e. the product object. Should all widget binding work in this way? 

M

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 25 May 2012, 10:11 AM
Hello,

 The autocomplete should set the selected product as text only if the value entered by the user is not present in the data source. You can check the widget binding MVVM demo which shows how the autocomplete behaves: http://demos.kendoui.com/web/mvvm/widgets.html . You can try any of the available values e.g. "Red", "Green" and a custom one.

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