angular-datatables icon indicating copy to clipboard operation
angular-datatables copied to clipboard

Disable the pagination

Open noteStylet opened this issue 11 years ago • 4 comments

Hi, How can I disable the pagination ? I searched how can I do it in the documentation but I didn't find :/

Thanks !

noteStylet avatar Jan 12 '15 12:01 noteStylet

I found it,

we have to add in option :

.withDOM('tr');

see documentation : http://datatables.net/examples/basic_init/dom.html

noteStylet avatar Jan 12 '15 13:01 noteStylet

Hi, how I can make table to display all rows with pagination disabled?

I tried .withDisplayLength(-1) .withDOM('ftr')

but it did not work. Even if I set big integer like 999 to displayLength

viethoang88 avatar Jan 13 '15 09:01 viethoang88

You need to specify the paging attribute to false:

.withOption('paging', false)

l-lin avatar Jan 13 '15 09:01 l-lin

@noteStylet Link:https://datatables.net/examples/basic_init/filter_only.html using(on doc site) $(function(){ $('#example').DataTable({ "paging":false, "searching":false }); }); in angular project with typescript but nothing is disabled yet. Also tried to use $(function(){ $('#example').DataTable({ paging:false, searching:false }); });

offline-pixel avatar Jan 12 '18 10:01 offline-pixel