How to fix this problem ? please help me :)

How to fix this problem ? please help me :)

RBPoneRBPone Posts: 1Questions: 1Answers: 0

I have problem when i use datatable in show data use ajax the problem is "DataTables warning: table id=lookup - Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3 please help me how to fix it ?

Answers

  • kthorngrenkthorngren Posts: 20,269Questions: 26Answers: 4,765

    Did you follow the steps in the link for help to solve the issue?
    http://datatables.net/tn/3

    Kevin

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    Also, try destroy in your DataTables initialisation.

    Colin

  • JuJoGuAlJuJoGuAl Posts: 32Questions: 2Answers: 0
    edited May 2020

    Just Use @colin answer:

        $('#lookup').dataTable({
                        destroy: true, //This destroy actual dataTable
                        columnDefs: [{}]...
                    })
    }
    

    it will fix it

This discussion has been closed.