Problem with Pagination

Problem with Pagination

proctonprocton Posts: 2Questions: 0Answers: 0

Hi All, I have the following strange behaviour ... if my table has more than 2 pages, it seems it des not take care of page size. Let's say I set page size as 2, with 2 cols, then if I have 10 records, the first page is correct (2 rows), while the second has 4 rows.
This is my table definition:

$('#myTable').DataTable({
searching : false,
ordering : false,
pageLength : "2",
lengthChange : false,
autoWidth : true,
scrollCollapse : false,
pagingType : "full_numbers",
info : false,
language : {
paginate : {
first: '<<',
last: '>>',
previous : '<',
next : '>'
},
},
});

Thank you very much.

Replies

  • proctonprocton Posts: 2Questions: 0Answers: 0

    I found the problem ... used pageLength : "2" instead of pageLength : 2
    Thank you anyway.

This discussion has been closed.