Hide processing message in Javascript for "manual" refresh

Hide processing message in Javascript for "manual" refresh

dotnetfundotnetfun Posts: 2Questions: 1Answers: 0

Hi,

We are using the following JS code to refresh the table, which is working great. But we would like to hide the processing message during that refresh:

setInterval(function () {
   ourtable.ajax.reload(null, false); // user paging is not reset on reload
}, 60000);

We have tried the following without success:

ourtable.processing = false

without success.

Is there a property we can set and value to pass to hide it during these "manual" refreshes?

Thanks.

Answers

  • kthorngrenkthorngren Posts: 21,319Questions: 26Answers: 4,948

    You will need to set this in the Datatables initialization. Use either processing option or, if you are using the dom option, remove the r.

    Kevin

  • dotnetfundotnetfun Posts: 2Questions: 1Answers: 0
    edited July 2021

    Thanks but that was my issue, we want to display it on first load, it's just the subsequent refreshes where we did not want to.

    I have achieved this just now anyway by using Javascript (JQuery) to remove the class that shows the processing indicator (a spinner in our case) before refresh.

Sign In or Register to comment.