pagination

pagination

mitsmits Posts: 15Questions: 0Answers: 0
edited September 2010 in General
Hello,

I have a problem.
When I use pagination in datatable (10 rows on 1 page) and if I have less than 10 rows then I would like to hide pagination. How can do this ?

Best Regards

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    If you use fnDrawCallback ( http://datatables.net/usage/callbacks#fnDrawCallback ) you can check the DOM to see if there are any other pages (the internal function fnSettings().fnRecordsDisplay() will give you the total number of records which will be displayed, which might be useful) - and just set display: none, if needed.

    Allan
  • mitsmits Posts: 15Questions: 0Answers: 0
    Thank you!
    Work.
This discussion has been closed.