简体   繁体   English

带分页的DataTable

[英]DataTable with paging

Hi I am trying to create a custom paging on my API but I am stuck without idea. 嗨,我正在尝试在我的API上创建自定义分页,但我束手无策。

I have a complex DataTable Object on the API which is created using severla source of information and that is what I expose in my API http//:myapi/getdata/2 我在API上有一个复杂的DataTable对象,该对象是使用大量信息源创建的,这就是我在API http //:myapi / getdata / 2中公开的内容

Anybody have an idea of how implement a paging on a DataTable. 任何人都有关于如何在DataTable上实现分页的想法。 I was trying to use the datatable's select method but I am not sure that I can performance complex queries with it Also I am returning my information in a JSON to use in a RadGrid 我试图使用数据表的select方法,但不确定是否可以使用它执行复杂的查询。另外,我还以JSON返回我的信息以在RadGrid中使用

Thank you 谢谢

I had to make a datatable with pagination, sorting and filtering. 我必须通过分页,排序和过滤来制作一个数据表。 I tried a lot to make it in a custom way. 我做了很多尝试,以自定义方式制作它。 But that turned out to be cumbersome and time-consuming. 但这却是麻烦且耗时的。 So I searched this jQuery plugin with which I could easily create datatables. 因此,我搜索了这个jQuery插件,可以轻松地创建数据表。 Here is the link : jQuery Datatbles plugin with PHP and MySQL 这是链接: 具有PHP和MySQL的jQuery Datatbles插件

Hope this plugin helps you to create your custom paging API :) 希望该插件可以帮助您创建自定义分页API :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM