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

taelortaelor Posts: 20Questions: 0Answers: 0
edited January 2010 in General
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.

Replies

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    Hi taelor,

    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
  • taelortaelor Posts: 20Questions: 0Answers: 0
    i looked and looked for those functions (i knew they had to exist!), but I could never find them. Where is the best place on this website to find all of those functions?
  • taelortaelor Posts: 20Questions: 0Answers: 0
    nevermind, they are at http://datatables.net/plug-ins/api, not at http://datatables.net/api.

    kinda confusing, but now I know
  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    Hi taelor,

    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
This discussion has been closed.