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

amit1990libraamit1990libra 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

column names...

Answers

  • allanallan Posts: 61,840Questions: 1Answers: 10,134 Site admin

    Please link to a test case, per the forum rules, so we can try to offer some help.

    Allan

This discussion has been closed.