hide pagination in datatables.
hide pagination in datatables.
giridhar
Posts: 20Questions: 4Answers: 0
hi i want to hide pagination in datatables if data rows are less than 10.can u please tell me how to implement this.
This discussion has been closed.
Replies
The simplest way is get some logic together to detect if you have less than 10 entries and then use Jquery to select the dataTables_paginate class and .hide() it (http://api.jquery.com/hide/).
What @Rpiechura says! You want to use
drawCallback
andpage.info()
as the callback and API method you need to use.Allan