Calling draw doesn't clear table and not make the call on drawCallback

Calling draw doesn't clear table and not make the call on drawCallback

neginbasirineginbasiri Posts: 10Questions: 4Answers: 0

Hi everyone,

The table I have created shows data perfectly. However, we have a custom search and we pass the parameters in url and it will return search result.
To do that, I made the table.draw with new parameters. The ajax call is correct and coming back with search result however the 'Processing' label is showing and the old rows are there and apparently drawCallback is not being called.

I got no error (apart from 'processing' stuck). I have no idea where to put break point or where to start debugging. Any idea what is possibly causing this problem?

Thank you in advance

Answers

  • neginbasirineginbasiri Posts: 10Questions: 4Answers: 0

    I found where the problem is. Datatable sending Draw: 2 to server but server sending back draw: 1 and data table doesn't like that (which is correct).

This discussion has been closed.