Can't initialize FixedColumns
Can't initialize FixedColumns
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]
[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]
This discussion has been closed.
Replies
Allan