Why ColVis will not show remaining fields in a responsive layout?

Why ColVis will not show remaining fields in a responsive layout?

Tester2017Tester2017 Posts: 145Questions: 23Answers: 17

Here an example: https://datatables.net/extensions/responsive/examples/column-control/column-visibility.html

Steps to reproduce. Make your window small and start to hide fields, starting with firstName, lastName, Position, Office etc... On a certain moment, you will not see any rows anymore, even when you did not hide all the fields in the ColVis control.

Why does ColVis not show the remaining fields?

This question has an accepted answers - jump to answer

Answers

  • bwilli33bwilli33 Posts: 6Questions: 0Answers: 0

    Yeah I was just fighting with those two plugin's today I can't seem to have both of them at the same time.

  • Tester2017Tester2017 Posts: 145Questions: 23Answers: 17

    The problem is that Responsive is triggered by a table init preInit.dt.dtr.

    You can force this event by refreshing your browser, then the remaining fields will be shown if there is enough space.

    I have to less knowledge about the whole Datatables project and structure but it looks like that a solution can be forced by letting ColVis fire an event, which will be caught by an Event Listener for Responsive.

    If I have some time left, I will try something.

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin
    Answer ✓

    Thank you both for highlighting this issue. I've just committed a fix and it will be in the Responsive nightly shortly.

    Regards,
    Allan

This discussion has been closed.