adding 1000, 10000 to pagination popup

adding 1000, 10000 to pagination popup

bocodebocode Posts: 9Questions: 0Answers: 0
edited January 2011 in General
Hi,

Am using Datatables 1.6.1. Am a newbie and completely blown away as to what can be done with it. I would like to show 1000, 10000 records per page in the table? is this possible if so, how can this be achieved?

As of now am able to see 100 records per page but i want to see 1000 or 10000 records per page.

I know i know the frontend will possbily choke with that kind of info but i want to see if this can be done.

Thank you very much for your help,
Bo

Replies

  • PhilippPhilipp Posts: 4Questions: 1Answers: 0
    hi bo

    check the "aLengthMenu" under http://datatables.net/usage/options

    but no idea if this parameter already exists in 1.6.1 :-/
  • 28.vivek.s28.vivek.s Posts: 69Questions: 0Answers: 0
    edited January 2011
    hi Philipp,bocode

    you can achieve this by iDisplayLength variable, given by DataTable.
    [code]
    $(document).ready(function() {
    jQuery('#example').dataTable(
    "iDisplayLength":5000 or
    "iDisplayLength":1000
    );
    });
    [/code]
    Thanks,
    Vivek
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    aLengthMenu was introduced in 1.7 I'm afraid. The approach in pre-1.7 was to modify the language variable for the menu and put in your own select menu - there is an example here: http://datatables.net/usage/i18n#oLanguage.sLengthMenu

    Allan
  • bocodebocode Posts: 9Questions: 0Answers: 0
    Allan/Vivek/Phillip,

    Thanks all, just upgraded to 1.7 and it works like charm. Can't stop loving datatables...Great Work Allan!!!
This discussion has been closed.