Controlling when the "processing" message is shown

Controlling when the "processing" message is shown

galcottgalcott Posts: 53Questions: 15Answers: 1

I've set the "processing" option to true on some tables that take a bit of time to load. However, I noticed that the processing message also flashes for a fraction of a second when sorting the table, which is unnecessary and a bit annoying. Is there a way to have it display only on loading, but not on sorting?

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586
    edited June 2020

    Yep, if you're using serverSide, that message will appear whenever the server is contact. There's no api method to disable it, but you could just remove the processing element from the DOM, like this: http://live.datatables.net/polepiya/1/edit

    Colin

  • galcottgalcott Posts: 53Questions: 15Answers: 1

    I'm not using serverSide but the message was still showing on a sort. I never would have thought of removing it from the DOM but that worked fine. Thanks.

This discussion has been closed.