Only 12 columns are displayed

Only 12 columns are displayed

auris2018auris2018 Posts: 11Questions: 3Answers: 0

I am defining my columns in the columns parameter of options (using {data: some_data, title: "Column Title}). I only see 12 columns displayed on the datatable. If I press the CSV or Print button then I see them all. Is there a limitation of some kind?

Thanks.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,348Questions: 26Answers: 4,955

    Sounds like you have something hiding some of the columns. Please post a link to your page are a test case replicating the issue so we can help debug.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • auris2018auris2018 Posts: 11Questions: 3Answers: 0

    Hi there,
    I am using React for my project and there's quite a lot of other stuff going on but I'll try my best.
    I am surprised to see that 12 is not mentioned anywhere as a limit as all tables limit themselves to that number. I saw another thread (but only one) where someone mentioned 12 it but that's it.
    Thanks.

  • kthorngrenkthorngren Posts: 21,348Questions: 26Answers: 4,955
    Answer ✓

    There is no column limit. Maybe there is a responsive option that is hiding columns.

    Here is a simple example with 18 columns built using columns.data and columns.title as you described:
    http://live.datatables.net/zavazesa/1/edit

    Kevin

  • auris2018auris2018 Posts: 11Questions: 3Answers: 0

    Yes, it was the responsive option. The icon for expansion was not visible. Thank you.

Sign In or Register to comment.