Exception when sorting, info & pagination (aanFeatures)

Exception when sorting, info & pagination (aanFeatures)

DavidePDavideP Posts: 4Questions: 1Answers: 0
edited September 2015 in Free community support

DataTables debugger: osumeb
I've the following script:

$('#tabCriticita').DataTable({
        ajax: {
            url:'.........php',
            dataSrc: 'data'
        },
        columns: [
            {data: 'idCronCriticita',title:'idCronCriticita'},
            {data: 'rifCriticita',title:'rifCriticita'},
            {data: 'displayCrit',title:'Descrizione'},
            {data: 'niceDataInizio',title:'Inizio'},
            {data: 'niceDataFine',title:'Fine'},
        ],
        "order": [[ 4, "asc" ]],
        jQueryUI:true,
        fixHeader:true,
        "bLengthChange": false,
        "bPaginate": false,
        "bProcessing": true,
        info:false,
        scrollY: 400,
        deferRender: true,
        resposive: true,
        "language":lang_it,
        "columnDefs":[
            {
                "targets": [0],
                "visible": false,
                "searchable": false
            },
            {
                "targets": [1],
                "visible": false,
                "searchable": true
            }
        ],
        "sDom": 'lfrtpF'
    });

I get Uncaught TypeError: Cannot read property 'length' of undefined when i try to sorting the table.
After debugging on console, I've found out that the error is in the info function in datatables.js : aanFeatures.i is undefined (maybe because I've turned info off?)

The error disappears if I comment sDom:'lfrtpF' and info:false in my script

Can you help me?

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.