Plain html table showing ‘no matching records found’
Plain html table showing ‘no matching records found’

I’m trying to fix something on an old site using dt 1.10
I have a plain html table as source, rendered before dt is initiated
Inside document.ready I initialize the dt with
var table = $(‘#scheme”).dataTable()
No other fancy stuff needed
The page does not show the table, just no matching records found
Out of 66, so its sees the records
How could I make the table display, just as in the very first example in the documentation
Note:I can’t change to a newer version and all other dt tables on the site work (but they come via ajax call)
Replies
It sounds like you are initializing Datatables before the rows are added to the HTML table. First populate the table then initialize Datatables. Otherwise Datatables won’t know about the rows added after initialization.
Kevin
Be worth checking your html is valid against the W3C validator as well. Also make sure you are using one and only one
tbody
in the table.If that doesn't help please post a link to a test case.
Allan