[英]Jquery datatable PageLength does not do anything on select list change
I am using jquery datatable and when I change the number of rows from the dropdown list of datatable from 20 - 50. It does not show me the remaining rows. 我正在使用jquery数据表,当我从20-50的数据表下拉列表中更改行数时,它不显示剩余的行。
I have tried changing different attributes but none of them worked for me. 我试过改变不同的属性,但没有一个适合我。
$('#eventsTable').dataTable( {
"aaSorting": [],
"iDisplayLength": 20,
"aLengthMenu": [[20, 50, -1], [20, 50, "All"]],
} );
Try given solution 试试给定解决方案
$("#urTable").dataTables({
"bJQueryUI":true,
"bSort":false,
"bPaginate":true,
"sPaginationType":"full_numbers",
"iDisplayLength": 10
});
This worked for me 这对我有用
$('#myTable').dataTable( {
"pageLength": 25,
"lengthMenu": [ [10, 25, 50, -1], [10, 25, 50, "All"] ]
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.