Show all

Show all

MurphyMurphy Posts: 4Questions: 0Answers: 0
edited February 2013 in DataTables 1.9
How to show all rows without pagination and return to pagination mode.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Set the page length to -1. Page length change plug-in: http://datatables.net/plug-ins/api#fnLengthChange

    Allan
  • MurphyMurphy Posts: 4Questions: 0Answers: 0
    Thank you. It works.
    But how to set page length?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I don't understand - if it works, are you not setting the page length?
  • MurphyMurphy Posts: 4Questions: 0Answers: 0
    No. I set rows length. If set e. g. 40, pagination bar leave as is.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I'm not understanding. If you set the pagination length to 40, it will show 40 entries per page. Does it not?
  • MurphyMurphy Posts: 4Questions: 0Answers: 0
    Yes, it is not.
    40 is not pagination length.
    It's quantity of rows in table.
    Do you understand me?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Not really - the plug-in I linked to changes the page length. The number of actual rows in the table is determined solely by the data you put into it.

    Can you please link to a test case so I might be able to understand the problem.
This discussion has been closed.