Leftmost column isn't fixed

Leftmost column isn't fixed

mbaasmbaas Posts: 67Questions: 24Answers: 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:

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi @mbaas ,

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

    Thanks,
    Sandy

  • kthorngrenkthorngren Posts: 21,452Questions: 26Answers: 4,975
    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:
    http://live.datatables.net/viwiweco/2/edit

    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.

    Kevin

  • mbaasmbaas Posts: 67Questions: 24Answers: 1

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

Sign In or Register to comment.