Hidden columns

Hidden columns

oferbuoferbu Posts: 1Questions: 0Answers: 0
edited July 2011 in General
Hi,

The DataTables is presenting the hidden columns for very short time (2-3 seconds) and after that they disappear. What is the cause for bug and is there a way to solve it?

Regards
Ofer

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Its not so much a bug as simply the way it works. Remember that DataTables is taking your HTML table which has already been created in the page's DOM and "enhancing" it. This process takes time, and thus sometimes you can have a visible artefact such as you are seeing.

    Generally you shouldn't see it since DataTables is reasonably quick in its operation - but you might for large tables or on slower computers. Also make sure you do it when the DOM is ready, not at window.onload.

    An alternative is to not have the hidden columns - you could use an AJax source for example or one of the other data source options DataTables provides.

    Allan
This discussion has been closed.