18. Incorrect column count everywhere

18. Incorrect column count everywhere

NicoolasNicoolas Posts: 1Questions: 1Answers: 0

hello, without any modification in the tables, and with the last update installed, this error appears.
https://datatables.net/manual/tech-notes/18

I use #colspan# in all tables is it not possible to use it anymore?

There are over 200 tables, I can't edit them all manually. It's strange that with this update this function is no longer possible. Thanks for your help.

Answers

  • kthorngrenkthorngren Posts: 21,342Questions: 26Answers: 4,954
    edited December 2022

    Datatables has never supported colspan in the tbody. See the HTML requirements doc.

    I believe the error alert message is new. In previous versions there would be a cryptic console log error like cannot read mData of undefined or something along those lines when the column count is different than the header count. The error message was added to give the developer a more clear message.

    Kevin

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Yes, spot on as usual Kevin.

    If your table is throwing that error now, can you please link us to a page showing the issue or use JSFiddle, http://live.datatables.net or something else to show us an example of it not working? If there is an error in my code I will be able to correct it based on that. Or if it is unsupported HTML, I'll be able to say exactly why.

    Allan

Sign In or Register to comment.