I am currently implementing Ng-Grid with pagination feature and have successfully displayed data in the grid while formatting them accordingly.
For reference, here is my controller: http://pastebin.com/mnHE0rYq
However, I encountered an issue when attempting to set up pagination. Despite confirming that $scope.myData
contains loaded data (verified through console), no data is being rendered in the table when using the code below.
Upon removing the $timeout
function within the $scope.getPagedDataAsync
function (I also experimented with setTimeout()
with similar results), the data appears in the grid. Nonetheless, the grid does not reload upon clicking next/previous page buttons. Additionally, I observed that $scope.$apply()
is never triggered.
My current Ng-Grid version is 2.0.11 and AngularJS version is 1.2.16.
Any assistance on this matter would be greatly appreciated!