ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Not all data is rendered inside ng-grid

Open vovkvlad opened this issue 11 years ago • 4 comments

I'm fetching data from the server, and receive 20 data-items. However, only 6 rows are rendered, and inside ng-repeat there are 6 of them. However the height of the canvas is calculated correctly All other items appears after resize of the window. This issue is similar to: https://github.com/angular-ui/ng-grid/issues/860 , but using virtualizationThreshold doesn't work for me.

I got ng-grid via npm and my current version is 2.0.1

vovkvlad avatar Jun 10 '15 13:06 vovkvlad

@vovkvlad ng-grid 2.0.1 is really old. If you're stuck with 2.x you need to update to the latest version, 2.0.14. Unfortunately npm is out of date, I know.

Also you could look at using ui-grid, the rewrite of ng-grid. It's available on bower and is in beta.

c0bra avatar Jun 10 '15 15:06 c0bra

@c0bra I've tried version 2.0.14 and with it i have nothing on the view until resize.

And moreover, after i resize and get everything in one view, in other views while trying to resize I have the next errors:

Cannot read property '$$phase' of null in this part of code: domUtilityService.digest = function($scope) { if (!$scope.$root.$$phase) { $scope.$digest(); } };

vovkvlad avatar Jun 10 '15 15:06 vovkvlad

for ng-grid i think you need to call gridOptions.ngGrid.buildColumns(); for ui-grid you need to call gridApi.core.refresh();

JavaBasketball avatar Oct 21 '15 04:10 JavaBasketball

ng-grid is no longer supported.

mportuga avatar Dec 29 '16 22:12 mportuga