Hide the datatable pagination buttons when there is no data

Hide the datatable pagination buttons when there is no data

swethagswethag Posts: 18Questions: 0Answers: 0
edited July 2012 in General
How to hide the datatable pagination buttons when there is no data and also display the custom message?

Replies

  • swethagswethag Posts: 18Questions: 0Answers: 0
    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
  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    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
  • swethagswethag Posts: 18Questions: 0Answers: 0
    Thanks Allan for the response. I will do that.
This discussion has been closed.