Datatable errors when my "table" element has an "id" attribute explicitly set

Datatable errors when my "table" element has an "id" attribute explicitly set

aaronloesaaronloes Posts: 10Questions: 0Answers: 0
edited September 2012 in General
We are writing a single page application and we're finding that when we place id's on our dataTables, then unload the html and reload the html, we are getting errors throw. We've reproduced this issue many times and know it only occurs when we have id's on our tables. I'm thinking that dataTable is maintaining some sort of state about the table using the table id, but in our instance, the data no longer exists when we're redrawing the datatable html.

Has anyone experience this issue or knows if datatables is maintaining some sort of state/cache about a given table, and if so, how do we stop it from doing that?

Any help is appreciated.

Replies

  • aaronloesaaronloes Posts: 10Questions: 0Answers: 0
    so i found out that it is saving table states. Now i need to figure out how to have it not save a tables state. Is there a setting for this?
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Don't set the bStateSave: true option :-)

    Allan
  • aaronloesaaronloes Posts: 10Questions: 0Answers: 0
    We do not set that value. I have also explicitly set it to false and still have the same problem. Will try again to make sure, but pretty confident that doing so did not work.
This discussion has been closed.