I am trying to assign an angular scope object array to a DataSource item. Below is what I have tried.
$scope.getWaivers = function () { waiverService.getCustomers($scope.model.customer.CustomerID).then(function (result) { $scope.model.waivers = result.data; $scope.model.dataSource = new kendo.data.DataSource({ pageSize: 15, autoSync: true, autoBind: false, data: $scope.model.waivers, }); $scope.model.dataSource.read(); } }); };
$scope.surchargeGridOptions = { dataSource: $scope.model.dataSource, . . .}I can get everything to work using the transport read calls but I want to be able to make changes and add items locall without going back to the server data source.