Can't initialize FixedColumns

Can't initialize FixedColumns

ciaobenciaoben Posts: 21Questions: 0Answers: 0
edited February 2014 in General
I'm sure it 'll be something stupid, but i can't make the FixedColumn plug in work. This is the initialisation of the table, do someone find the error?

[code]

var table=$('#datatable_pagamento').dataTable( {
"bSort":false,
"sScrollY":200,
"sScrollX":"100%",
// "sScrollXInner":"1200px",
"bScrollCollapse": true,
"bPaginate":false,
fnInitComplete: function () {
console.log("boh");
new FixedColumns( table );



},
"bServerSide": true,
"sAjaxSource": "/async_datatable_pagamenti/",
"fnServerParams": function (aoData) {
aoData.push({
"name": "id_login",
"value": $("#h_id_login").val()
});
},
columnDefs: [
{ targets: "_all", contentPadding: "mmmmmmmmm" }
]

} );


[/code]

Replies

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    edited February 2014
    If you are using FixedColumns 3.0.0 you should use `new $.fn.dataTable.FixedColumns( table )` . However, I don't see an error beyond that. We'd need link to a test case.

    Allan
This discussion has been closed.