Avoid brief appearance of original table header ?
Avoid brief appearance of original table header ?
jan_goyvaerts
Posts: 31Questions: 0Answers: 0
DT is called for a table with a header prepared. It contains several columns and three rows (using colspans).
It's all working well - but with an annoying effect: The unstyled header briefly appears & it extends over the edge, all the way to the right of the screen. And when DT has done its work it collapses into the expected header with a scrollbar. No doubt because there are too many columns (265) it gives the browser enough time to show the original header.
What seems to work is to add the CSS property to the original table: "display: none". So it's hidden. Unfortunately the generated tables are also hidden - because they inherit this property. I've added code to "unhide" those tables in an initialization callback.
The problem is that Scroller or something decides to get all the rows as a consequence. Instead of the first visible page.
Has somebody in here already had this problem ?
It's all working well - but with an annoying effect: The unstyled header briefly appears & it extends over the edge, all the way to the right of the screen. And when DT has done its work it collapses into the expected header with a scrollbar. No doubt because there are too many columns (265) it gives the browser enough time to show the original header.
What seems to work is to add the CSS property to the original table: "display: none". So it's hidden. Unfortunately the generated tables are also hidden - because they inherit this property. I've added code to "unhide" those tables in an initialization callback.
The problem is that Scroller or something decides to get all the rows as a consequence. Instead of the first visible page.
Has somebody in here already had this problem ?
This discussion has been closed.