esvit / ng-table

Simple table with sorting and filtering on AngularJS
http://esvit.github.io/ng-table
BSD 3-Clause "New" or "Revised" License
2.77k stars 851 forks source link

Pagination not correct work if data load from API and i'm using grouping #795

Open Sir-J opened 8 years ago

Sir-J commented 8 years ago

Uploading data from the API and using the group fulfills incorrect paging. Downloading from the first 100 records (more than 8000+) they have the same group, so I have no control paging. How to do paging is not dependent on the number of groups and the number of records?

shepilov-vladislav commented 8 years ago

+1

Sir-J commented 8 years ago

+1

fuzzzya commented 8 years ago

+1

tandibar commented 8 years ago

Same Problem here. See PR for a fix that works for me (but perhaps not for non async data).

fsm3xpert commented 8 years ago

I've same problem, when paging on group data. So, i add these lines at the end on getGroups function.

if (!settings.dataOptions.applyPaging) {
    return ngTableDefaultGetData(result, params);
}
return ngTableDefaultGetData.applyPaging(result, params);

The pagination working on either used default or custom.