Processing indicator not showing after ajax.reload()

Processing indicator not showing after ajax.reload()

poisonspoisons Posts: 25Questions: 3Answers: 0
edited October 30 in Free community support

Is it normal behavior for the processing indicator, not appearing on ajax.reload if there are more than 25 entries?

In my particular case it doesn't appear if the page length is more than 25.
Even if I set paging to false.

Before posting the code and set an example, there's something else I can try? or is this a common behavior?

Answers

  • poisonspoisons Posts: 25Questions: 3Answers: 0
    edited October 30

    I found the problem. With more than 25 items, the table was so long that the spinner appeared down over the screen limit. Is there an option to set the default spinner to appear vertically at the top of the table and not centered?

  • rf1234rf1234 Posts: 3,021Questions: 88Answers: 421

    I use this CSS to fix the processing indicator. But that is for an older DT-version. Just check it out and modify it according to your needs.

    .dataTables_wrapper .dataTables_processing {
        position: fixed !important;
        top: 50% !important;
    }
    
  • allanallan Posts: 63,676Questions: 1Answers: 10,497 Site admin
    div.dt-container div.dt-processing {
    
    }
    

    would be the equivalent CSS selector for DataTables 2+.

    Allan

Sign In or Register to comment.