How can I hide my table until it is rendered?
How can I hide my table until it is rendered?
brianfidler
Posts: 21Questions: 1Answers: 0
I have a table at this URL: http://waldronsfarm.com/index.php/products/
My issue is that it is displaying before all the DataTables processing has occurred. I set bProcessing to True in hopes that it would display a "Processing" message while DataTables renders it but that isn't happening.
How can I hide my table and display a "Processing" message until DataTables has fully rendered the table?
My issue is that it is displaying before all the DataTables processing has occurred. I set bProcessing to True in hopes that it would display a "Processing" message while DataTables renders it but that isn't happening.
How can I hide my table and display a "Processing" message until DataTables has fully rendered the table?
This discussion has been closed.
Replies
If you have an element wrapping this area of your page (or your whole page if necessary), you can set the the style opacity to 0 and after the datatable function in your document.ready you can do a $('#').css('opacity',1); It hides the ugliness so long as the rest of your page dosen't suffer.
There really needs to be a way to parse display:none data without making the rest of the new dataTable suffer. From what I've seen, the display property is inherited into certain parts of the new table causing it to "break". Maybe we could strip that property after the creation and get the desired result.