Manual Pagination - Set the total number and page length, not using auto ajax
Manual Pagination - Set the total number and page length, not using auto ajax
Hey guys,
I'm using the fnAddData with some jQuery Ajax to populate my table after a request. I now want to do some pagination, but I don't want to use the AjaxSource stuff, is there anyway I can set the total number of things in the table and the page that you are on manually? Kind of like what you do with the iTotal stuff when you have bProcessing on.
I'm using the fnAddData with some jQuery Ajax to populate my table after a request. I now want to do some pagination, but I don't want to use the AjaxSource stuff, is there anyway I can set the total number of things in the table and the page that you are on manually? Kind of like what you do with the iTotal stuff when you have bProcessing on.
This discussion has been closed.
Replies
Some of the API plug-in functions might be of use to you - possibly as they are, certainly as examples of how you can use DataTables to manipulate the display. fnPageChange will changing the paging, fnLengthChange will change the display length and so on.
Hope this helps,
Allan
kinda confusing, but now I know
The /api page lists the built-in API functions, /plug-ins/api has the plug-in API functions. I should probably have linked directly to them in the first place... :-)
I've added a note to the /api page which notes the existence of the plug-ins. Hopefully avoid too much confusion in future.
Regards,
Allan