Datatable displays the message "Loading..." but it has no data and the processing is complete
Datatable displays the message "Loading..." but it has no data and the processing is complete
jikail
Posts: 3Questions: 2Answers: 0
Hello
Can you help me please ?
I use symfony with stimulus.
Datatable displays the message "Loading..." but it has no data and the processing is complete.
The response of server in json
{"draw":1,"recordsTotal":0,"recordsFiltered":0,"data":[]}
Datatable configuration
new DataTable(`#${tableName}`, {
responsive:true,
destroy: true,
autoWidth: false,
serverSide: true,
searching: false,
processing: true,
language: dataTablesFr,
ajax: dataToPost,
columnDefs: columnDefinition,
dom: 't<"bottom"<"data-table-pagination-footer"ilp>',
});
How i can find the problem please ?
Thanks you so much
Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
This question has an accepted answers - jump to answer
Answers
There was an error in DataTables 2.0.0 that would cause what you are seeing, but it has been fixed in the 2.0.1 release. What version are you using?
Allan
Nice thank you