Page length options / lengthMenu doesn't show up
Page length options / lengthMenu doesn't show up
jason30
Posts: 5Questions: 2Answers: 0
Hi all,
My DataTables is working correctly, however the Page length options / lengtMenu isn't show up anymore.
I wonder what could be the reason?
My config:
$('#debiteurdata').DataTable( {
"order": [[ 0, "desc" ]],
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"bPaginate": true,
"lengthChange": true,
"iDisplayLength": 25,
"language": {
"sProcessing": "Bezig...",
"sLengthMenu": "_MENU_ resultaten weergeven",
"sZeroRecords": "Geen resultaten gevonden",
"sInfo": "_START_ tot _END_ van _TOTAL_ resultaten",
"sInfoEmpty": "Geen resultaten om weer te geven",
"sInfoFiltered": " (gefilterd uit _MAX_ resultaten)",
"sInfoPostFix": "",
"sSearch": "Zoeken:",
"sEmptyTable": "Geen resultaten aanwezig in de tabel",
"sInfoThousands": ".",
"sLoadingRecords": "Een moment geduld aub - bezig met laden...",
"oPaginate": {
"sFirst": "Eerste",
"sLast": "Laatste",
"sNext": "Volgende",
"sPrevious": "Vorige"
}
},
dom: 'T<"clear">lfrtip',
tableTools: {
"sSwfPath": "js/copy_csv_xls_pdf.swf"
},
"fnDrawCallback": function( oSettings ) {
$(".cbShowOrHideGvCols").appendTo("div.dataTables_length");
}
} );
Thanks for any help.
This discussion has been closed.
Answers
What version of datatables are you using? I noticed you are using 1.10 and 1.9 naming conventions
Hi Jamaur,
I use the newest version 1.10. What do you mean with 1.9 naming conventions?
bPaginate & iDisplayLength are 1.9 namings,
paging & pageLength are 1.10 namings