How can I use both "pageLength": 10, & "paging": false, ??
pageLength has no meaning if paging is false - false means there is no paging, so everything will be displayed.
pageLength
paging
false
But I would like to remove row chooser and display 10 rows every page.
row chooser
Ah, so you want paging still. Use dom to remove the page selection menu - see here.
dom
But this solution displaying 100 rows per page. I need below controls to display.
That's the Buttons extension.
Thanks @colin . I am using below code
$('#elecList').DataTable( { dom: 'Bfrtip', buttons: [ 'copy', 'csv', 'excel', 'pdf', 'print' ], "pageLength": 10, } );
This code gives me sorted result. But I need unsorted result. Thanks.
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
pageLength
has no meaning ifpaging
isfalse
-false
means there is no paging, so everything will be displayed.But I would like to remove
row chooser
and display 10 rows every page.Ah, so you want paging still. Use
dom
to remove the page selection menu - see here.But this solution displaying 100 rows per page. I need below controls to display.
That's the Buttons extension.
Thanks @colin . I am using below code
This code gives me sorted result. But I need unsorted result. Thanks.