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

jikailjikail Posts: 3Questions: 2Answers: 0
edited March 7 in Free community support

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

  • allanallan Posts: 63,439Questions: 1Answers: 10,459 Site admin
    Answer ✓

    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

  • jikailjikail Posts: 3Questions: 2Answers: 0

    Nice thank you

Sign In or Register to comment.