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

Change DropDownList Datasource from ViewModel

1 Answer 126 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 28 Apr 2016, 06:10 PM

We are using Kendo MVVM.  It is easy and straightforward to set the data source for a drop down list to pull from that view model.  However, we cannot update that source and have it reflected in the drop down list.  We can do it for the combobox very easily.  Confused as to why the dropdown list would make it "difficult".  While it isn't technically difficult, it is dirty for the view model to need to access the view element directly in order to call .setDatasource.

Please tell me I am missing something about updating the datasource of a drop down from the view model.

-David

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 02 May 2016, 08:38 AM
Hi David,

Could you please provide a small Kendo Dojo example which demonstrates your current implementation so I can examine it and advise you accordingly?

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