extdevelopment

Results comments of extdevelopment

@PaulL1 I have similar refresh issue. I tried this, but a result an empty grid, concat method doesn't change the original array. ``` javascript $scope.gridOptions.data.length = 0; $scope.gridOptions.data.concat(newData); ``` I...

@PaulL1 $timeout helped, grid refreshed in next digest loop. I could not find any other solution. ``` javascript SonataService.query(params).$promise.then(function(data) { $scope.gridOptions.data.length = 0; $timeout(function(){ $scope.gridOptions.data = data.data; }); }); ```

@c0bra SonataService.query(params).$promise is $resource angularjs $q promise. https://docs.angularjs.org/api/ngResource/service/$resource $promise: the promise of the original server interaction that created this instance or collection.