Loading feedback to user when using ajax.reload()

Loading feedback to user when using ajax.reload()

kendulinkendulin Posts: 5Questions: 0Answers: 0

When using ajax.reload() the table does not indicate data is being reloaded. If the processing option is used it will show the Processing notice, but it will also show it along with the loading message on the initial data load, which looks bad. The problem with this is that if the refreshed data looks very similar to the old data there is no visual indication that the refresh has completed.

I tried using table.clear() and table.draw() before ajax.reload() and that works except it shows No data available in table while the request is being made.

It would be nice to see a more user friendly handling of this. I am curious as to how other devs have handled this. Thanks.

Replies

  • kendulinkendulin Posts: 5Questions: 0Answers: 0

    Just to follow up, I solved this by using the preXhr and xhr events to show my own Loading status. It doesn't help with the table showing the previous data while it loads, but it works good enough.

This discussion has been closed.