Progress Bar for Ajax Server Side DataTable
Progress Bar for Ajax Server Side DataTable
Hi All,
I am fairly new to datatables. I am making a reporting plugin for an open source application, and am using data tables to display the data.
I tried initially to just display all the data, but it was a record set of over 50k. I therefore did it as an ajax server side processing table. And that cut down the sped from about 50 secs to 15 secs. But its still 15 secs, and thats a long time, especially for every single request for pagination buttons, search boxes etc etc...
I want to display a progress bar so the client knows that the report is actually doing something, and not just hanging, cuz the client does not want a static loading bar or spinner, he wants to know that the report is loading or doing something.
I have php code that will do a progress bar, but it is based on this class http://vancewalsh.com/php/
But the problem here is, because of the specific way I have to return the data, in the json array object format, I don't know how to make data tables work with this example.
Any help would really be appreciated.
Zedd
I am fairly new to datatables. I am making a reporting plugin for an open source application, and am using data tables to display the data.
I tried initially to just display all the data, but it was a record set of over 50k. I therefore did it as an ajax server side processing table. And that cut down the sped from about 50 secs to 15 secs. But its still 15 secs, and thats a long time, especially for every single request for pagination buttons, search boxes etc etc...
I want to display a progress bar so the client knows that the report is actually doing something, and not just hanging, cuz the client does not want a static loading bar or spinner, he wants to know that the report is loading or doing something.
I have php code that will do a progress bar, but it is based on this class http://vancewalsh.com/php/
But the problem here is, because of the specific way I have to return the data, in the json array object format, I don't know how to make data tables work with this example.
Any help would really be appreciated.
Zedd
This discussion has been closed.
Replies
> But the problem here is, because of the specific way I have to return the data, in the json array object format, I don't know how to make data tables work with this example.
You can use also any data format with DataTables using mData - http://datatables.net/blog/Extended_data_source_options_with_DataTables
Allan
the way the above progress bar works, is it echos the progress every time i update the progress. And that will break the code for the data tables.
Is there a way to tell the datatables to ignore all data returned from the server until the final and last object, which has all the data is returned?
Allan
Allan