Pagination incorrect with server-side

Pagination incorrect with server-side

hadjsaid_tahahadjsaid_taha Posts: 1Questions: 1Answers: 0
edited January 2018 in Free community support

Hello,

Thank you for the great plugin.

I'am using DataTables to retrieve data from Asp.net web service.

The amount of rows in database is 128, the DataTables configuration is with pageLength to 40 and server processing is enabled.

When a first ajax sent to the service and get a response, we have a pagination with 5 pages which is wrong, we must have only 4 pages.

The web service send the correct value in recordsTotal (128) and recordsFiltered (128), the data is 40 objects.

Another point we have on bottom :
Showing 0 to 0 of 0 entries (filtered from NaN total entries)

I'am using the DataTables 1.10 version.

Reagrds Taha

This discussion has been closed.