Render on load

Render on load

wouterstevenwoutersteven Posts: 8Questions: 0Answers: 0
edited May 2012 in DataTables 1.9
Hi, good morning,

Is it possible to display the table only after it has finished loading? Now I see the HTML table first (very briefly) before it turns into a nicely styled datatables layout ...

- WS

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Put it into a height:1px element and then set the height to auto with Javascript once initialised. You could use display:none, but is a serious performance impact on IE for some reason...

    Allan
  • wouterstevenwoutersteven Posts: 8Questions: 0Answers: 0
    Great, that seems to work. I'm doing that now in fnDrawCallback(). Is that the place to do that? or should i use another callback for that?
This discussion has been closed.