I am new to datatables. I am trying to find solution for server side processing since last two days but didnt find the solution.
My JS code is
this.$("#example").DataTable({
"processing": true,
"serverSide": true,
"ajax": "../employees.json",
"columns": [{
"data": "Name"
}, {
"data": "Age"
}, {
"data": "Country"
}, {
"data": "Address"
}, {
"data": "Married"
}]
});
Datatable renders JSON in table format. But sorting, pagination and search operation is not working. It shows all results on the first page no matter how much value I have selected from dropdown
Also at bottom it shows message like "Showing 0 to 0 of 0 entries (filtered from NaN total entries)"
If I pass serverSide: false. everything works fine. But I want server side processing of the same
Any help would be appreciated