Server side code does not return correctly value for "recordsTotal"
Server side code does not return correctly value for "recordsTotal"
I get the following response from the server. Sorting does not work, probably due to the missing value of recordsTotal, in addition, the pagination is multiplied. What could be the reason?
Any help is appreciated.
Here is the response:
{
"draw": null,
"data": [
{
"DT_RowId": "row_1",
"Id": 1,
"RowGuid": "B8ED08D7-41DF-48AD-88E1-19961C2D2E5F",
"AuthorId": 1,
"CreatedOn": "2019-09-16T19:35:48.767",
"ModifiedOn": null,
"IsRemoved": false,
"IsActive": true,
"FirstName": "Karolina",
"LastName": "Stasiak",
"MiddleName": null,
"BirthDate": "1987-09-06T00:00:00",
"Email": "karolina.stasiak@op.pl",
"PhoneNumber": "8906785443",
"Street": "Wojska Polskiego",
"StreetNumber": "Wojska Polskiego",
"PostalCode": "71-567",
"District": "zachodniopomorskie",
"Country": "Polska",
"City": "Szczecin"
}
],
"recordsTotal": null,
"recordsFiltered": null,
"error": null,
"fieldErrors": [],
"id": null,
"meta": {},
"options": {},
"files": {},
"upload": {
"id": null
},
"debug": null,
"cancelled": []
}
This discussion has been closed.
Answers
Hi @technoir ,
This will be down to your server-side script - are you using one of our templates or have you created your own?
Cheers,
Colin