Fixed Columns question

Fixed Columns question

mcgeemcgee Posts: 10Questions: 5Answers: 0

Hi,
I am trying to implement fixed columns on a datatable but am getting some formatting issues. I am using the latest versions of everything but am getting a scrollbar under my fixed columns ( 2 scrollbars appearing at the bottom) and the header is slightly out as well.

Anyone any ideas why this is? I have followed the documentation from what I can see.

Code is as follows:-

$(document).ready(function () { var table = $('#myTable').dataTable({ "scrollX": "100%", }); new $.fn.dataTable.FixedColumns( table, {"leftColumns": 2} ); });

Thanks

Answers

  • allanallan Posts: 61,716Questions: 1Answers: 10,108 Site admin

    Can you link to the page please?

    Allan

  • mcgeemcgee Posts: 10Questions: 5Answers: 0

    Hi Allan,
    Its on an intranet so iv screenshotted it to here http://prntscr.com/59mycw

  • mcgeemcgee Posts: 10Questions: 5Answers: 0

    Sorry lads. Nothing wrong with the datatables stuff. Other styles I had from another style sheet were throwing out my table. So fixed columns works perfectly.

This discussion has been closed.