Scroller together with responsive doesn't work

Scroller together with responsive doesn't work

JochenKJochenK Posts: 55Questions: 10Answers: 0

Link to test case:
https://live.datatables.net/lificuso/1/edit

Description of problem:
My datatable contains 14 columns, so horizontal scrolling is defined.
But if I turn on responsive "responsive : true" at the same time, horizontal scrolling is no longer possible.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974
    Answer ✓

    Responsive will hide columns to allow the table to fit within the container thus eliminating the need for horizontal scrolling. Using Class control you might be able to stop responsive from hiding certain columns to achieve the scrolling you want. See this example.

    Kevin

  • JochenKJochenK Posts: 55Questions: 10Answers: 0

    Hi Kevin,
    Thanks for the tip.
    I think I can't use "class control" because I never know how many columns there are to scroll. The column titles also change from datatable to datatable.
    I can live with not using responsive :)

    Jochen

Sign In or Register to comment.