How to do client-side pagination with ngGrid?

Golo Roden picture Golo Roden · Nov 28, 2013 · Viewed 16.3k times · Source

If you set the enablePaging options of an ng-grid to true, you enable server-side pagination.

What about client-side one? I could not find any hint on this in the documentation, but I can not imagine that ng-grid does not support client-side paging as well.

Any hint?

Answer

Felby picture Felby · Dec 5, 2013

I think the example given on the angular page (http://angular-ui.github.io/ng-grid/) actually shows an example of client-side paging. If you look at the data load that is being called by the sample script (http://angular-ui.github.io/ng-grid/jsonFiles/largeLoad.json), you'll see that its not actually doing any server-side paging... it's coming down as one big file.