I have been using ui-grid for some time now. Recently I encountered a issue with the grid wherein if I pass a slightly large set of data (say 50 rows), the grid do not display them all.
When I debug and look for my $scope.gridOption.data object it seems to contain all the element but still only a few (about 10) are displayed.
When I try sorting by clicking headers, a few more rows appear. (1 or 2 sometimes)
This is not regular and has no pattern. It occurs randomly for different data sets.
I am using ui-grid - v3.2.6
and I have a div
for grid-table with a max-height
and scroll
otherwise. I am having multiple such grids on a page with similar implementation but this issue seems to appear currently on a certain grid.
I could draft a plunker but it would not really help as this issue is random and also I have a basic ui-grid implementation.
I followed this link https://github.com/angular-ui/ui-grid/issues/424
, however I could not understand much out of it and I am still stuck.
Seems like this is a known and unfixed bug. But is there any working solution for this ???
Any help is appreciated..
You can set this $scope.gridOptions.excessRows to how much ever rows you want to show, by default this value is set to 4 in ui-grid.