ServerSide on false not displaying all results
ServerSide on false not displaying all results

Hello,
I tried to pass serverSide property to false in my DataTable script, but it displays to me only 50 results when I have more than 30 000 entries in my table.
And when I pass serverSide property to true, I've got all my results to display.
What can explain this difference? How can I get all my results with serverSide property on false ?
Thank you.
This discussion has been closed.
Answers
Happy to take a look at a test case showing the issue per the forum rules.
My guess is that there is an error in the server-side script, but without a test case and also the server-side code it is impossible to say.
Allan
Hello,
Here is a test case : https://flanerbouger.studiolab.fr/test/cities
The serverSide is on false, and show me only 50 results.
Take a look at the response in the browser's network inspector and you will see that only 50 rows are returned. Your server script will need to return all the rows with serverSide false. Also with serverSide false Datatables doesn't use the server side parameters returned from your script for the number of records.
Kevin
Your page is showing a console error - "Uncaught (in promise) " in your "cities" file. I don't know anything about promises, so I can't say more.
Hi @tangerine, this error relates to a google map script, it doesn't affect the datatable process.
@kthorngren, I don't understand everything... my server side script doesn't change whether it's false or true, I don't understand why it changes my result number:
Here is my server side script (it's the Omines bundle for Symfony :
This request will search all my cities, there are no limitations.
And my client side script :
I'm not familiar with
Omines bundle for Symfony
. I would start by outputting the sql statement that is generated.Datatables will display the rows returned. The server scrip twill need to be debugged to determine why its returning only 50 rows of data.
Kevin