Need datatables to ignore hidden rows when considering whether it is empty
Need datatables to ignore hidden rows when considering whether it is empty
I have a data table which has a thead, tbody and in the tbody, one or more tr's which are display: none. So, nothing physically displays for the table because all the tr's are invisible. But the table does not consider itself empty because it does physically have TR's in it and so I don't get the empty table message. Is there a way to tell DataTables to not consider hidden tr's to be actual data rows so it will consider itself to be empty when it visually is empty on the page?
Right now, my workaround is going to be along the lines of manually entering a row to simulate DataTables' empty table message in this particular scenario.
Thanks.