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

Dropdownlist not assigning value from model when databinding after model is set

1 Answer 41 Views
This is a migrated thread and some comments may be shown as answers.
Sergi
Top achievements
Rank 1
Sergi asked on 26 Jun 2018, 09:46 AM

I have a dropdownlist that reads the datasource from a webserver, and the problem is that when using v-model sometimes the dropdown displays as empty because the server call takes a bit longer to return the items for the dropdown.

¿How can I solve this problem?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 28 Jun 2018, 06:30 AM
Hello Sergi,

By design, if the request takes longer than to execute, the widget will be initialized with an empty model. However, once the request gets back with the data - the model should be properly populated. Can you please make sure that there is no error in the scenario when the request takes a long time?

Also, it would be best, if you could send us a runnable example, where the experienced issue resides. Hence, we can locally test the configuration that you have at your end and pin down the reason for the issue. 

Regards,
Nencho
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Sergi
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or