Lazy loading of table rows in jQuery datatables 1.10.10?

I am using jquery datatable 1.10.10. Are there any options for lazy loading row data into datatable. For example, if a datatable contains 50 rows of records, if I scroll through the data to the end, it asks for another 50 rows of data and adds to the existing datatable?

+4
source share
1 answer

False loading can be achieved using Scroller server-side extensions and processing, see "Scroller - Server Processing" .

For example:

$(document).ready(function() {
    $('#example').DataTable( {
        serverSide: true,
        ordering: false,
        searching: false,
        ajax: '/path/to/script',
        scrollY: 200,
        scroller: {
            loadingIndicator: true
        }
    } );
} );
+6
source

Source: https://habr.com/ru/post/1628125/


All Articles