How to use Angular UI-Grid with Server Side Paging
There is a server-side pagination option available in the API.
http://ui-grid.info/docs/#!/api/ui.grid.pagination.api:GridOptions -> useExternalPagination
Here is an example of server-side pagination and sorting:
http://plnkr.co/edit/UttxPkXG8fYQDX85fnyZ?p=preview
In above example, refer to the code block given below which does the server-side pagination:
gridApi.pagination.on.paginationChanged($scope, function (newPage, pageSize) {
paginationOptions.pageNumber = newPage;
paginationOptions.pageSize = pageSize;
getPage();
});