Can DataTables be made to display the table only after the sort has completed?

Can DataTables be made to display the table only after the sort has completed?

rsleventhalrsleventhal Posts: 1Questions: 1Answers: 0

Test Case:
http://live.datatables.net/xonafili/1/edit

My data set can be very large and take a bit for the query to complete. During that time, the data is being displayed including the hidden column. I'm wondering if there's a way to cause DT to hide the table until the table has fully generated.

Thanks in advance for any assistance.

-Ray

Answers

  • SchautDollarSchautDollar Posts: 18Questions: 5Answers: 1

    Hello Ray,

    What is your source for your data? Are you calling the server for the data after the page loads, or are you obtaining the data before and creating the table yourself?

    Thank you,
    Ryan

  • colincolin Posts: 5,619Questions: 0Answers: 981

    Hi @rsleventhal ,

    You could use jQuery's hide() and show() methods like this - hopefully that will do the trick,

    Cheers,

    Colin

Sign In or Register to comment.