Scroller - fnInfoCallback problem
Scroller - fnInfoCallback problem
First, glad I found the Scroller "Extra" --- thought I was going to have to re-do a whole lot of effort, until this solved my performance issues.
Only problem I'm running into is with the "Info" line...
I was using:
[code]
"fnInfoCallback": function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
return 'Total Records: ' + iTotal;
},
[/code]
since I didn't want the "Showing X to Y of Z..." format.
However, after implementing the Scroller feature, my fnInfoCallback function *is* being called - and I can see the result in the browser window when stepping through with a debugger - but then the Scroller code is re-writing the Info in the "Showing X to Y of Z..." format.
Any easy way to prevent that?
- Don
Only problem I'm running into is with the "Info" line...
I was using:
[code]
"fnInfoCallback": function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
return 'Total Records: ' + iTotal;
},
[/code]
since I didn't want the "Showing X to Y of Z..." format.
However, after implementing the Scroller feature, my fnInfoCallback function *is* being called - and I can see the result in the browser window when stepping through with a debugger - but then the Scroller code is re-writing the Info in the "Showing X to Y of Z..." format.
Any easy way to prevent that?
- Don
This discussion has been closed.
Replies
[code]
$(document).ready(function() {
$('#example').dataTable( {
"oLanguage": {
"sInfo": "Total records: _TOTAL_"
},
} );
} );
[/code]
- Don