responsive: true, not work with add tr

responsive: true, not work with add tr

Massimo74Massimo74 Posts: 85Questions: 1Answers: 0

hi I have a table with the addition of a row in the thead and a row for the totals in the footer and it all works regularly except for the fact that the "responsive: true" option does not work on these 2 lines and when I expand and shrink the columns these lines become misaligned ...

Replies

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    Hi @Massimo1974 ,

    I'm guessing it's because you've added that header and footer after the table was initialised so Datatables isn't aware of it. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. 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

  • Massimo74Massimo74 Posts: 85Questions: 1Answers: 0

    http://live.datatables.net/tecalabo/1/edit
    see the tread and the tfoot don't scroll

  • Massimo74Massimo74 Posts: 85Questions: 1Answers: 0

    scrollX: true ????

  • Massimo74Massimo74 Posts: 85Questions: 1Answers: 0

    but if you see it here it doesn't work
    http://jsfiddle.net/0b6zytx1/

  • Massimo74Massimo74 Posts: 85Questions: 1Answers: 0

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin

    Responsive currently only supports a single row in the table header I'm afraid. That is a short coming that I'm aware of and we plan to address in future, although I'm not yet sure when.

    Allan

This discussion has been closed.