diff --git a/src/js/dataGrid.js b/src/js/dataGrid.js index d7ddb3f..17c99a7 100644 --- a/src/js/dataGrid.js +++ b/src/js/dataGrid.js @@ -54,6 +54,11 @@ } } }); + + $scope.$watchCollection('[_gridOptions.reloaddata,_gridOptions.reloaddatacount]', function (newValue) { + $scope.filtered = newValue[0]; + $scope.paginationOptions.totalItems = newValue[1]; + }); $scope.sort = function (predicate, isDefaultSort) { if (!isDefaultSort) { @@ -444,4 +449,4 @@ }); } } -})(); \ No newline at end of file +})();