Issues with getting fixed header going

Issues with getting fixed header going

QuesnelJQuesnelJ Posts: 25Questions: 4Answers: 0

Hello again,

I am trying to get fixedHeader working, and I'm not getting much luck. I was hoping someone could point me in the right direction. Here is my configuration code:

    tableHndl = $('#allDataTableData').DataTable (  // Connect to our table in our view.
        {
            FixedHeader : true,
            lengthMenu  : [[10, 50, 100, 200, 300, 500], ["10", "50", "100", "200", "300", "500 (May be slow)"]],
            pageLength  : defaultPageLength,
            processing  : true,
            serverSide  : true,
            order       : defaultOrderBy,
            ajax    :   {
                            url     : '/dispatch.php/' + productName + '/getData',
                            type    : "post",
                            error   : function()
                                {
                                    $(".allDataTableData-error").html ("");
                                    $("#allDataTableData").append ('<tbody class="employee-grid-error"><tr><th colspan="3">Data not found.</th></tr></tbody>');
                                    $("#allDataTableData_processing").css ("display","none");
                                }
                        }
        }); // tableHndl = $('#allDataTableData').DataTable

Thanks for your assistance.

Answers

This discussion has been closed.