Column header misaligned with table body. I am using Datatable1.10.4.Below is my code
Column header misaligned with table body. I am using Datatable1.10.4.Below is my code
amit1990libra
Posts: 2Questions: 2Answers: 0
Column header misaligned with table body. I am using Datatable1.10.4.Below is my code
Table = $('#Table').DataTable({
"bDestroy": true,
"bServerSide": true,
"sScrollY": "auto",
"sAjaxSource": "Data", //COntroller
"sScrollX": "auto",
"bScrollCollapse": true,
"sDom": "Rlfrtip",
"autoWidth": true,
"bProcessing": true,
"resizableColumns": true,
"autoWidth": false,
"pagingType": "full_numbers",
"lengthMenu": [[10, 25, 50, 100, 150], [10, 25, 50, 100, 150]],
"fnServerData": function (sSource, aoData, fnCallback) {
aoData.push({ "name": "paramNam1", "value": paramValue1});
aoData.push({ "name": "paramNam2", "value": paramValue2});
$.post(sSource, aoData, function (json) {
fnCallback(json);
Table.draw();
/$('#container').css('display', 'block');
Table.columns.adjust().draw();
},'json');
},
});
//cshtml
This discussion has been closed.
Answers
Please link to a test case, per the forum rules, so we can try to offer some help.
Allan