I have a table in which data comes from a database. I use data tables in this table. But the problem is that there is no row in the database, it displays a warning
DataTables warning (table id = 'table-filter'): Requested unknown parameter '0' from the data source for row 0
My jQuery code for the table:
$('#table-filter').dataTable({ "bPaginate": true, "bProcessing": false, "bStateSave": false, "aLengthMenu": [[5, 10, 20, 50, 100 , -1], [5, 10, 20, 50, 100, "All"]], "iDisplayLength" : 5, "sPaginationType": "full_numbers", "aoColumnDefs": [ { 'bSortable': false, 'aTargets': [ 0,7 ] } ], "oLanguage": { "sLengthMenu": "Show _MENU_ records per page", "sZeroRecords": "Nothing found - sorry", "sInfo": "Showing _START_ to _END_ of _TOTAL_ Entries", "sInfoEmpty": "Showing 0 to 0 of 0 records", "sInfoFiltered": "(filtered from _MAX_ total records)" } }).columnFilter({ aoColumns:[ null, { type: "text" }, { type: "text" }, { type: "text" }, { type: "text" }, { type: "text" }, { type: "text" } ], });
What can I do for this?
Happy source share