Disabling "Incorrect column count" warning for empty tables

Disabling "Incorrect column count" warning for empty tables

augustosamameaugustosamame Posts: 5Questions: 1Answers: 0
edited July 2023 in Free community support

It's a common ocurrence that when populating a datatable, there will be no matching records. In this case, no rows are shown, and that's fine, the "No data available in table" message is shown. However, since there are no rows in HTML, the "Incorrect column count" JS warning is also triggered. Is there a way to disable it? Can't really use DataTables with this message popping up each time there is an empty table.
Of course I could always generate empty rows and show the No data message manually for theses cases, but seems like too much work when a simple flag to disable the warning should do the trick.

Replies

Sign In or Register to comment.