Getting original HTML for a table

Getting original HTML for a table

AlanMAlanM Posts: 2Questions: 0Answers: 0
edited August 2013 in General
I've had a quick look at the source but I cannot quite see how I would get the original inner HTML for the table I have applied Datatables too. I need the html without the pagination applied i.e. all row and columns across all pages, but I want column headers and everything.

I realise I could put into a variable before calling .DataTables but that will consume more client side memory and DataTables must already have this data so it knows how to page etc?

Replies

  • allanallan Posts: 63,235Questions: 1Answers: 10,417 Site admin
    edited August 2013
    DataTables doesn't retain that information for the very reason you mention - it would consume more memory and it doesn't need that information. It uses and manipulates the table, not a clone.

    You can use fnDestroy to destroy the DataTable instance.

    Allan
  • AlanMAlanM Posts: 2Questions: 0Answers: 0
    Thanks.

    That's what I needed to know.
This discussion has been closed.