I've got a KendoDropDownList like the following:
I am trying to use it with a controller and service.
However, not only does it not load the data from my JSON source (it is just an array of JSON objects), but it looks like it's triggering some sort of infinite loop on the Angular side:
How can I correct this so that my combobox is populated by the datasource after the q returns the data?
<
select
kendo-drop-down-list
style
=
"margin-left: -20px;"
k-options
=
"customOptions"
ng-model
=
"selectedBuild"
k-rebind
=
"buildDataSource"
></
select
>
I am trying to use it with a controller and service.
$scope.buildDataSource = new kendo.data.DataSource();
BuildSvc.GetListOfBuilds($routeParams.venueId)
.then(function (data) {
$scope.buildDataSource.data(data);
}
);
However, not only does it not load the data from my JSON source (it is just an array of JSON objects), but it looks like it's triggering some sort of infinite loop on the Angular side:
Unhandled exception at line 12715, column 13 in http://localhost:33394/VenueModelPortal/Scripts/angular.js
0x800a139e - JavaScript runtime error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
How can I correct this so that my combobox is populated by the datasource after the q returns the data?