Last column always hidden

Last column always hidden

douglas.brueydouglas.bruey Posts: 1Questions: 1Answers: 0

I am using Responsive with Bootstrap 3 as described in this example.

It is working great, except that the last column is always hidden. If I shrink the window and refresh the screen, it is still hidden. But, if I expand the window even one pixel, the last column appears.

It seems like datatables is calculating the viewport width as one less than it was rendered and hiding the last column. Do I need to put my table in a certain container, or add a certain type of padding to ensure that the viewport has a few pixels of padding?

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586
    edited June 2018

    Hi @douglas.bruey ,

    As you can see in that link you posted the code itself does work, so it's going to be something specific to your initialisation or CSS. We're happy to take a look, but it would help, as per the forum rules, if you could link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • nonno72nonno72 Posts: 2Questions: 0Answers: 0
    edited January 2020

    hi @douglas.bruey ,
    try to set the table width 100% like this:

    <

    table id="data_table_DG" class="tabella_DG" border="0" width="100%">

    Cheers
    Francesco

This discussion has been closed.