Pagination Not Working Properly.?

Pagination Not Working Properly.?

gowthamAGgowthamAG Posts: 1Questions: 1Answers: 0

I done a Server-Side Ajax Datatable and have a response of
{draw: 1, recordsTotal: 27,recordsFiltered: 20, data: [,…]}.
But, the Problem is With datatable. On the First Page itself it shows all the 20 Rows.?

You Can see in Image that Row Counting from 1 to 20, is showing on the first Page. How to OverCome this.? Please help me to find out this.!

Answers

  • kthorngrenkthorngren Posts: 21,166Questions: 26Answers: 4,921

    There is some missing information like your Datatables config and how many rows of data is in your data object in the JSON response. Do you have the pageLength option set? It defaults to 10 if you don't. How many rows of data is in your data object?

    If this doesn't help then the best option would be a link to your page so ewe can look. Or post your Datatables config and the number of rows in data. You can also try the debugger and post the results for the developers. The debug image may have all the info they need.

    Kevin

This discussion has been closed.