Container div not being generated or being removed

Container div not being generated or being removed

nednednedned Posts: 1Questions: 1Answers: 0

Hey there, in my project that uses a DataTable, things were previously working as expected, when at some point I realized that the search filter and length drop down input had disappeared. Turns out that the entire container div with class dataTables_wrapper is not longer being generated by the DataTable() call. I am however able to force the container to be wrapped around the table element by doing this:

var $table = $('#datatable');
$(datatable.table().container()).append($table);

Unfortunately I'm struggling to get previous commits of the code to run in my current environment for some reason so have not been able to do a bisection to work out if the culprit. Is there obvious candidates for what could be going on here?

The output of the trace debugger: http://debug.datatables.net/ojewew

Answers

  • allanallan Posts: 63,461Questions: 1Answers: 10,466 Site admin

    I'm afraid I've never heard of this issue before. My best guess is that something is moving the table from the container to somewhere else in the document after the initialisation.

    We'd really need a test case on http://live.datatables.net or JSFiddle to be able to offer any help.

    Allan

This discussion has been closed.