processing bar briefly shows for column sort, stays longer for pagination
processing bar briefly shows for column sort, stays longer for pagination
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.
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.
This discussion has been closed.
Replies
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