Quantcast
Viewing all articles
Browse latest Browse all 82140

State saving does not work: "TypeError: oColumn is undefined" (line 6705)

Hi Allan,

I am trying to use the datatable as a replacement for rich:extendedDataTable. Most of the features are working, except for state saving. I always get:

TypeError: oColumn is undefined
https://localhost:8443/js/jquery.dataTables.js
Line 6705

using DataTables 1.9.4. My table initialization:
   var siTable = jQuery('#table').dataTable( {
        "bPaginate": false,
        "bInfo" : false,
        "bAutoWidth" : true,
        "aoColumnDefs" : [
                // do not display the internal id and status id columns
                { "bSearchable": false, "bVisible": false, "aTargets": [ "ID", "STATUS_ID" ] },
                // when sorting the Status column, use the internal status id column
                { "iDataSort": [ 1 ], "aTargets": [ 2 ] }
        ],
        "aaSorting": [[2,'desc']],  // initial sorting by status column
        "bStateSave" : true,
        "sDom" : 'TRlrt',
        "oTableTools" : {
            "aButtons": [],
            "sRowSelect": "single",
            "sSelectedClass": "selected",
            "fnRowSelected": function (nodes) {
                  // ....
            }
        }
    });

Cookies are enabled.
I'd be grateful for any hint. I still didn't find the time to update the colReorderResize thing... too much to do.

Viewing all articles
Browse latest Browse all 82140

Trending Articles