I am not sure if I am repeating the question if yes guide to the right place :)
I am using Data table and trying to implement Horizontal Scrolling and found this link
I had a similar issue, but solved it in a different way.
I modified the sDom
parameter to wrap the table in an extra div
:
sDom: 'r<"H"lf><"datatable-scroll"t><"F"ip>',
I then applied the following styles to the .datatable-scroll
class:
/**
* Makes the table have horizontal scroll bar if its too wide for its container
*/
.datatable-scroll {
overflow-x: auto;
overflow-y: visible;
}
http://datatables.net/usage/options#sDom