Page length options / lengthMenu doesn't show up

Page length options / lengthMenu doesn't show up

jason30jason30 Posts: 5Questions: 2Answers: 0
edited May 2014 in Free community support

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.

Answers

  • JamaurJamaur Posts: 87Questions: 10Answers: 0

    What version of datatables are you using? I noticed you are using 1.10 and 1.9 naming conventions

  • jason30jason30 Posts: 5Questions: 2Answers: 0

    Hi Jamaur,
    I use the newest version 1.10. What do you mean with 1.9 naming conventions?

  • JamaurJamaur Posts: 87Questions: 10Answers: 0

    bPaginate & iDisplayLength are 1.9 namings,
    paging & pageLength are 1.10 namings

This discussion has been closed.