Pagination 123...789

Pagination 123...789

TKingTKing Posts: 3Questions: 0Answers: 0
edited March 2010 in General
Hey Allan,
is it possible that if i have more than 20 pages that only the first Five and the last Five are displayed and not all 20 because if i have more than 4000 entries in my database the Mass of Numbers gets annoying..

Thanks in advanse
tking

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    This is certainly possible - but you made need to modify the pagination code. As a quick 'fix/test' you could try setting:

    jQuery.fn.dataTableExt.oPagination.iFullNumbersShowPages = 20;

    And seeing if that does what you are looking for. If not, then you might need to dig around in the paging plug-ins code:

    http://datatables.net/development/pagination
    http://datatables.net/plug-ins/pagination

    If you do modify / create a paging plug-in, perhaps you could share it with us, so others can use it as well? :-)

    Regards,
    Allan
This discussion has been closed.