如何使用 ngGrid 进行客户端分页? [英] How to do client-side pagination with ngGrid?

查看:34
本文介绍了如何使用 ngGrid 进行客户端分页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果将 ng-gridenablePaging 选项设置为 true,则启用服务器端分页.

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

客户端呢?我在文档中找不到任何提示,但我无法想象 ng-grid 也不支持客户端分页.

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.

有什么提示吗?

推荐答案

我认为 angular 页面上给出的示例 (http://angular-ui.github.io/ng-grid/) 实际上展示了一个客户端分页的例子.如果您查看示例脚本调用的数据加载 (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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆