Scroller - fnInfoCallback problem

Scroller - fnInfoCallback problem

iDoniDon Posts: 4Questions: 0Answers: 0
edited July 2011 in Plug-ins
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

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    edited July 2011
    Rather than use the callback, modify oLanguage.sInfo

    [code]
    $(document).ready(function() {
    $('#example').dataTable( {
    "oLanguage": {
    "sInfo": "Total records: _TOTAL_"
    },
    } );
    } );
    [/code]
  • iDoniDon Posts: 4Questions: 0Answers: 0
    Ah - perfect... Thanks a bunch "fbas"!

    - Don
This discussion has been closed.