≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Hide the datatable pagination buttons when there is no data
Hide the datatable pagination buttons when there is no data
swethag
Posts: 18
Questions: 0
Answers: 0
July 2012
edited July 2012
in
General
How to hide the datatable pagination buttons when there is no data and also display the custom message?
Replies
swethag
Posts: 18
Questions: 0
Answers: 0
July 2012
Can somebody tell me where to check the length of the datatable , if length=0 then i have to display the custom message instead of datatable
allan
Posts: 65,848
Questions: 1
Answers: 10,956
Site admin
July 2012
I'd suggest using this API plug-in in
fnDrawCallback
: http://datatables.net/plug-ins/api#fnPagingInfo . Then you can simply set display:block / none as required on the paging element.
Allan
swethag
Posts: 18
Questions: 0
Answers: 0
July 2012
Thanks Allan for the response. I will do that.
This discussion has been closed.
Replies
Allan