Datables : Cannot reinitialise DataTable.

Datables : Cannot reinitialise DataTable.

edited October 2012 in DataTables 1.8 Posts: 1

I have got a problem with the reinitialise of the datatable :-/

In my project, i have got a generic jsp file which contain a DataTable.

... <div class="_100" style="margin-top: 20px;"> <table id="tableSearch"> <thead> <tr> <th>Col1</th> <th>Col2</th> <th>Col3</th> <th>Col4</th> <th>Col5</th> <th>Col6</th> </tr> </thead> </table> </div> ...
with a generic js file for to manage it :

... function init() { var oTable= $('#tableSearch').dataTable({ "bProcessing" : true, "bServerSide" : true, ... } ...
I include this generic file to several other jsps file and

For the first jsp file, i haven't got a problem.

For the other jsp files, I have this error :

DataTables warning (table id = 'table-resRech-identiteLiee'): Cannot reinitialise DataTable.

I try to put these arguments : bRetrieve=true or bDestroy = true but they don't work.

Is it possible to refresh/destry/reinitialise the datatable for an other jsp ?

Thanks a lot for your comments.


  • edited October 2012 Posts: 6
    I've had a similiar problem and seen references to bRetrieve and bDestroy, as well as fnAdjustColumnSizing(), but would love to be walked through the step-by-step.

    In my case, we have one page where a main table loads and a second table in hidden / triggered by clicking to open a UI Dialog.

    In the second instance, three tables load in an accordion (one shown, two hidden), and would love to be able to re-initialize or AdjustColumnSizing when the accordion pane opens...

    (unfortunately I can't post a link - this site is strictly under login only)
This discussion has been closed.