Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do client-side pagination with ngGrid?

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?

like image 722
Golo Roden Avatar asked Nov 28 '13 08:11

Golo Roden


1 Answers

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.

like image 80
Felby Avatar answered Sep 27 '22 22:09

Felby