Customizing a table when defaults are set?

Customizing a table when defaults are set?

anaganag Posts: 48Questions: 2Answers: 7
edited March 2013 in General
I placed a custom initializer at the bottom of this code which has default table settings. http://pastebin.com/s4tyqxVz

I'm getting this error....

DataTables warning (table id=’sample_1’): Cannot reinitialise DataTable.

To retrieve the DataTables object for this table, pass no arguments or see the docs for bRetreieve and bDestroy.

How do I customize this table with id sample_1 when there's custom settings?

Replies

  • allanallan Posts: 61,436Questions: 1Answers: 10,049 Site admin
    Loks like it should work to me. Please link to a working test case so we can help. The error you are getting is if you try to initialise a DataTables twice, which as the error says, you cannot do.

    Allan
  • anaganag Posts: 48Questions: 2Answers: 7
    Hi Allan, it turned out the code to initialize the table was in another file and not in the same file as these default settings.
This discussion has been closed.