REAL EXAMPLE

REAL EXAMPLE

zirius666zirius666 Posts: 6Questions: 3Answers: 0
edited February 2016 in Free community support

i want to use this example:

$(document).ready(function() {
$('#example').DataTable( {
serverSide: true,
ordering: false,
searching: false,
ajax: function ( data, callback, settings ) {
var out = [];

        for ( var i=data.start, ien=data.start+data.length ; i<ien ; i++ ) {
            out.push( [ i+'-1', i+'-2', i+'-3', i+'-4', i+'-5' ] );
        }

        setTimeout( function () {
            callback( {
                draw: data.draw,
                data: out,
                recordsTotal: 5000000,
                recordsFiltered: 5000000
            } );
        }, 50 );
    },
    scrollY: 200,
    scroller: {
        loadingIndicator: true
    }
} );

} );

but with real data , i tried to setup in many ways but i cant make run

only please help me how set up with real example of ajax

thanks

Answers

  • allanallan Posts: 61,853Questions: 1Answers: 10,134 Site admin

    I would suggest you start with this example. When that is working simply enable Scroller.

    Allan

This discussion has been closed.