processing bar briefly shows for column sort, stays longer for pagination

processing bar briefly shows for column sort, stays longer for pagination

mungletmunglet Posts: 14Questions: 0Answers: 0
edited May 2009 in General
I've got the datatable set up to be getting its data server side and to show the the processing bar during the ajax request.

The problem is that when I click on a column header to sort the processing bar briefly appears and then quickly disappears prior to the ajax call being completed. Howeiver, if I click on a pagination link like, "next", "prev", etc... then the processing bar appears for the entire duration of the ajax call.

Thoughts?

Thanks.

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Yup - it's a bug in DataTables.

    I've corrected this in my development version now and I'll release the fix with the next beta release. But for now if you want to fix it in your local version find the following code block in DataTables (line 2055):

    [code]
    fnInnerSorting();
    _fnProcessingDisplay( oSettings, false );
    [/code]

    and replace with:

    [code]
    fnInnerSorting();
    if ( !oSettings.oFeatures.bServerSide )
    {
    _fnProcessingDisplay( oSettings, false );
    }
    [/code]

    And that should do it.

    Regards,
    Allan
  • mungletmunglet Posts: 14Questions: 0Answers: 0
    Thanks. That took care of it.
This discussion has been closed.