从 Telerik MVC 网格或 DevExpress MVC 扩展网格导出数据
我们正在评估购买哪个组件库,Telerik MVC 还是 DevExpress MVC 扩展。
我们至少需要:
开箱即用的网格内容导出为各种格式(Excel、Pdf、 Html...);
在网格的页脚中,启用分页时,可以显示一个接受输入以进行快速页面切换的文本框(我想输入 25,单击 Enter 并转到第 25 页,而无需单击页脚中的太多链接);
有没有人对任何或两个库都有经验,并且可以告诉我这些功能是否受两个或任何一个或没有支持?
谢谢!
we are evaluating which component library to buy, either Telerik MVC or DevExpress MVC extensions.
we need at minimum:
out of the box grid content export to various formats (Excel, Pdf,
Html...);in the footer of the grid, when paging is enabled, possibility to show a textbox which accepts input for quick page switching ( I want to enter 25, click enter and go to page 25 without clicking on too many links in the footer );
does anybody have experience with any or both libraries and can tell me if these features are supported by both or any or none?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
DevExpress MVC GridView 扩展提供了所需的功能:
导出数据:
http://mvc.devexpress.com/GridView/Export
可自定义分页器:
http://mvc.devexpress.com/GridView/Templates
The DevExpress MVC GridView Extension provides the required functionality:
Exporting Data:
http://mvc.devexpress.com/GridView/Export
Customizable Pager:
http://mvc.devexpress.com/GridView/Templates
Telerik 是非常好的东西。他们的 MVC 实现是全新的并且非常好。它是开源的或可供购买,具体取决于您自己的许可需求。即使有许可证,阅读他们的源代码也是很好的。它可以帮助您更智能地使用它。
使用现代轻量级 AJAX 方法,网格将仅加载某些行,并且从此类客户端网格导出是没有意义的。如果显示十行并且分页显示第 i 页,共 j 页,则从客户端网格的显式导出将仅获得十行。
考虑创建一个新的控制器方法,如下所示:
Telerik is very good stuff. Their MVC implementation is brand new and quite good. It is open sourced or for purchase depending upon your own licensing needs. Even under a license it is nice to read their source code. It helps you use it smarter.
Using the modern light weight AJAX approach, the grid will only have some of the rows loaded and export from such a client side grid makes no sense. If there are ten rows displayed and pagination shows page i of j then an explicit export from the client side grid will only get ten rows.
Consider creating a new controller method like this: