How to display a progress indicator for serverside processing
How to display a progress indicator for serverside processing
snunn
Posts: 17Questions: 5Answers: 0
Can't seem to find an example that shows a progress indicator while the server side request is being processed. Is there one available?
Replies
Add the option processing: true. This will show a "processing" message while the data loads.
https://datatables.net/examples/data_sources/server_side.html
How would I make it a spinning icon vs text?
I used the font Awesome spinner from http://fontawesome.io/examples/#animated and it seem to work.
```
$(document).ready(function () {
$('#example').DataTable({
```
I put it here http://live.datatables.net/kihecona/1/edit since there is not a real ajax call, it throws up an error but you see it spin until you close the error.
Just hit "Run with JS" button
That's perfect.
Works well!!
How to dynamically show and hide processing box? I don't want to depend on DataTable internal AJAX call.
@mastercoria Checkout the processing() plugin.
Kevin