如何做好客户端分页与ngGrid? [英] How to do client-side pagination with ngGrid?
问题描述
如果您设置了 NG-格
的 enablePaging
选项真实
,您启用服务器端分页。
If you set the enablePaging
options of an ng-grid
to true
, you enable server-side pagination.
有关客户端之一,请问?我找不到任何这暗示在文档中,但我无法想象, NG-格
不支持客户端分页以及
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.
任何暗示?
推荐答案
我觉得角页上给出的例子( http://angular-ui.github.io/ng-grid/ )实际上表示客户端的寻呼的一个例子。如果你看一下数据负载正在由示例脚本(<一个名为href=\"http://angular-ui.github.io/ng-grid/jsonFiles/largeLoad.json\">http://angular-ui.github.io/ng-grid/jsonFiles/largeLoad.json),你会发现它不是真正做任何服务器端分页......它的到来了作为一个大文件。
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.
这篇关于如何做好客户端分页与ngGrid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!