Processing message when sorting

Processing message when sorting

lenamtllenamtl Posts: 253Questions: 63Answers: 1
edited August 3 in Free community support

Hi,

I have updated from 1.10 to the latest.
I'm using Bootstrap 5 and this happening in client side
How to reproduce click on column sorting icon.

On 1.10 I was not seeing the processing message (maybe only when there was a lot of data).
Now I always see processing message even when only a few result for example if I sort 6 records / client side.

This is anoying because it just flickering .

Is there a way to only display when there is a lot of data?

Thanks

Answers

  • allanallan Posts: 56,423Questions: 1Answers: 8,955 Site admin

    Can you link to a test case showing the issue please? With only 6 rows, I wouldn't expect the processing disable to be painted by the browser.

    Allan

  • lenamtllenamtl Posts: 253Questions: 63Answers: 1
    edited August 4

    Hi,

    I cannot reproduce the case on JSFiddle with plain HTML JS.
    I don't know what trigger this...
    This problem was not present on 1.10

    The message display even for 2 rows or on empty table when I click on sort....

    I'm using PHP, I'm saving statesave to DB using Ajax.
    I only change the Datatables package and I use the latest jQuery.

    Can you point me in the code where it is set and the condition that displayed it.

  • lenamtllenamtl Posts: 253Questions: 63Answers: 1

    By the way, how can I set to false using default
    Because this is not working

        $.extend( $.fn.dataTable.defaults, {  
        "processing": false,
          }
    

    I may disabled this message as a temporary solution.

  • kthorngrenkthorngren Posts: 16,363Questions: 25Answers: 3,886
    edited August 5

    According to the processing the default is false. Do you have processing: true set in the Datatable init code?, If yes then this will override your setting for the defaults.

    Kevin

  • lenamtllenamtl Posts: 253Questions: 63Answers: 1

    I only have **bprocessing ** for the button is it the same?

  • kthorngrenkthorngren Posts: 16,363Questions: 25Answers: 3,886

    I'm not sure what bprocessing for the button does. I don't remember seeing this as a buttons option. If you can't post a test case showing the issue please post your relevant JS code. If you have processing: false or don't have the processing configured then it will be turned off. But if you are still seeing a processing message then maybe you have custom code showing processing.

    Kevin

Sign In or Register to comment.