Im not able to show the loading message when I reload data

Im not able to show the loading message when I reload data

belhaussbelhauss Posts: 2Questions: 1Answers: 0
edited July 2020 in Free community support

Link to test case: http://live.datatables.net/xijuwete/1/edit?html,js,output
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: I have a big json file as data source so it take some time to completly load (12sec), when I try to reload using the button "Actualiser" I want to show the message loadingRecords "Loading .." but instead I have the message zeroRecords "No data available.."

How can I show the message loadingRecords when I hit reload (Actualiser)

Thanks in advance

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Your test case doesn't show the issues you describe.

  • belhaussbelhauss Posts: 2Questions: 1Answers: 0
    edited July 2020

    Yes it does, when I hit (Actualiser) button I see the message "No data available" instead of "Loading".
    Edit: The actual data take more time to load (15sec) not like the case here

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Yep, the problem here is the table doesn't have any data, you've cleared it. And that message is then displayed until the new data appears from the Ajax call.

    The only solution would be to change the empty table message - see here - though this wouldn't work if it's possible to have no data in the table,

    Colin

This discussion has been closed.