REAL EXAMPLE
REAL EXAMPLE
zirius666
Posts: 6Questions: 3Answers: 0
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
This discussion has been closed.
Answers
I would suggest you start with this example. When that is working simply enable Scroller.
Allan