Refreshing DataTable After Ajax Call
Refreshing DataTable After Ajax Call
hemant_joshi
Posts: 13Questions: 7Answers: 0
I have gone through number of threads and discussion but very unclear regarding refreshing Datatable which gets data from server side and refreshes the DataTable.
Can I simple use table.ajax.reload( null, false );
where my paging will be retaind and it will go back to server and get fresh data. Any help would be wellcome.
This discussion has been closed.
Answers
i use table.draw() ,https://datatables.net/reference/api/draw%28%29
Will that work with server side processing.
yup, thats what i use for server-side processing
Sorry it give me error draw() is not a function.
you will need to setup your source code example to properly diagnose the issue
here is a server-side template
http://live.datatables.net/laxinabe/1/edit
how i use is like so, having filters in the header (note i have omitted the code that generates the filters for brevity)
and i do apologize i do use table.ajax.reload( null, false ); when i am not filtering, and it refreshes my data with current filters and pagination