Fixed Columns question
Fixed Columns question
mcgee
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
This discussion has been closed.
Answers
Can you link to the page please?
Allan
Hi Allan,
Its on an intranet so iv screenshotted it to here http://prntscr.com/59mycw
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.