How to refresh/reload kendo comboBox dataSource with AngularJs?


I do:


but comboBox still doesn't reload.

Problem courtesy of: Kristy Kavada


The code you posted in the comments shows that you are trying to reload the combobox's datasource. This will work if comboBoxDataSource is of type. What I woud suggest you is to use the model $scope.comboBoxListOptions to control the UI:


There is no need to call refresh() method after

Check this demo for more details:

As a side note, do not use private variables like "_data". It is safer to use the API:

Solution courtesy of: George K


comboBox.Items.Clear(); comboBox.DropDownStyle = ComboBoxStyle.DropDownList;

Discussion courtesy of: user5878197

This recipe can be found in it's original form on Stack Over Flow.