Force Processing On

Force Processing On

w2chaudhw2chaudh Posts: 2Questions: 1Answers: 0
edited September 2014 in Free community support

Hi,

Is there a way to force the processing indicator on/off when your not using server-side processing. I'm populating my table with JavaScript array data and there is a delay before the table begins to populate. So, basically I'd like to do this:

processingIndicator.on();

delay();

processingIndicator.off();

Answers

  • allanallan Posts: 61,928Questions: 1Answers: 10,153 Site admin

    Try this plug-in.

    Allan

  • w2chaudhw2chaudh Posts: 2Questions: 1Answers: 0
    edited September 2014

    Hi,

    I've already tried this plugin but it's a legacy plugin and changing DataTables constructor to use a lowercase d (to make it work) breaks other functionality I have. The line of code it breaks is:

    table.clear().rows.add(data).draw();

    Also, the indicator didn't work.

  • allanallan Posts: 61,928Questions: 1Answers: 10,153 Site admin

    You can use both forms:

    var newApi = $('#myTable').DataTable( ... );
    var oldApi = $('#myTable').dataTable();
    

    You could also rewrite the plug-in to work for the 1.10 style API.

    Allan

This discussion has been closed.