Tables don't show all pages in pagination. Only first page

Tables don't show all pages in pagination. Only first page

SashaRevnukSashaRevnuk Posts: 2Questions: 1Answers: 0

So, I use server-side table

This I returned from server

return response()->json(['data' => $data,'recordsTotal' => $sportObjectsTotal, 'draw' => (int)$request->get('draw'), 'recordsFiltered' => $objects->count()]);

this is screenshot from my page

this is what I get from server:

data: [,…]
draw: 1
recordsFiltered: 10
recordsTotal: 23

So, what a problem? Why I can see only first page? Please help me

Answers

  • SashaRevnukSashaRevnuk Posts: 2Questions: 1Answers: 0

    Ohhh I was resolved this problem:
    recordsTotal and recordsFiltered must be the same number

    Question closed

This discussion has been closed.