Leftmost column isn't fixed

Leftmost column isn't fixed

mbaasmbaas Posts: 61Questions: 22Answers: 1

Link to test case: http://live.datatables.net/viwiweco/2/edit?html,console,output
Debugger code (debug.datatables.net): https://debug.datatables.net/acarab
Error messages shown: ---
Description of problem:
The 1st column of my table scrolls away, if you scroll horizontally. fixedColumns= trues has no effect.
I have no idea what's happening and would appreciate some insight.

This question has accepted answers - jump to:


  • sandysandy Posts: 785Questions: 0Answers: 214
    Answer ✓

    Hi @mbaas ,

    You need to set scrollX to true to enabled DataTables' horizontal scrolling. Take a look at this example.


  • kthorngrenkthorngren Posts: 14,519Questions: 25Answers: 3,450
    Answer ✓

    You need to enable scrollX for FixedColumns. This is from the linked page:

    When making use of DataTables' x-axis scrolling feature (scrollX), you may wish to fix the left or right most columns in place.

    Here is your example with scrollX enabled:

    Also note that FixedHeader is not compatible with the scrolling features and thus FixedColumns:

    Please note that FixedHeader is not currently compatible with tables that have the scrolling features of DataTables enabled (scrollX / scrollY). Please refer to the compatibility table for full compatibility details.


  • mbaasmbaas Posts: 61Questions: 22Answers: 1

    Thanks to both of you for those helpful replies! :)

Sign In or Register to comment.