Leftmost column isn't fixed
Leftmost column isn't fixed
mbaas
Posts: 67Questions: 24Answers: 1
in FixedColumns
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
Hi @mbaas ,
You need to set
scrollX
to true to enabled DataTables' horizontal scrolling. Take a look at this example.Thanks,
Sandy
You need to enable
scrollX
for FixedColumns. This is from the linked page: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:
Kevin
Thanks to both of you for those helpful replies!