Print "Processing" Problem
Print "Processing" Problem
ScottG
Posts: 3Questions: 0Answers: 0
I noticed Rob posted on this back on Jun 18th, 2009 but I couldn't find a response/fix for it and was wondering if anyone knew about this problem and how to solve it.
When I go to print the print view comes up and works just fine, but after pressing ESC to return to the grid, the "processing" alert doesn't disappear. I can turn off processing on the table to make it disappear, but I would like it to process on the initial queries for the table. Also, if the table is sorted/searched when the "processing" is stuck on the table it removes the "processing" alert. Is this a bug or am I doing something wrong and how can I fix it?
When I go to print the print view comes up and works just fine, but after pressing ESC to return to the grid, the "processing" alert doesn't disappear. I can turn off processing on the table to make it disappear, but I would like it to process on the initial queries for the table. Also, if the table is sorted/searched when the "processing" is stuck on the table it removes the "processing" alert. Is this a bug or am I doing something wrong and how can I fix it?
This discussion has been closed.
Replies
/* Only interested in the escape key */
if (e.keyCode == 27) {
/* Show all hidden nodes */
fnPrintShowNodes();
/* Restore the scroll */
window.scrollTo(0, _iPrintScroll);
/* Drop the print message */
if (_nPrintMessage) {
document.body.removeChild(_nPrintMessage);
_nPrintMessage = null;
}
console.log("in print end");
/* Restore the table length */
_DTSettings._iDisplayStart = _iPrintSaveStart;
_DTSettings._iDisplayLength = _iPrintSaveLength;
_DTSettings.oApi._fnCalculateEnd(_DTSettings);
_DTSettings.oApi._fnProcessingDisplay(_DTSettings, false);
_DTSettings.oApi._fnDraw(_DTSettings);
$(document).unbind("keydown", fnPrintEnd);
}
}
[/code]
Adding _DTSettings.oApi._fnProcessingDisplay(_DTSettings, false); stops it from processing on tables that are processed client-side, but since it is added for the _fnDraw when the server-side processes are called the processing is reinitilized to true and processing will show up for those until the server returns information.
Allan