Prevent multiple ajax calls from jquery datatable on server side pagination
Prevent multiple ajax calls from jquery datatable on server side pagination
gouravrathour007
Posts: 9Questions: 2Answers: 0
ajax: {
url: this.schemaService.apiUrl + "/referenceschema/schemalist",
type: "POST",
data: (payload) => {
debugger
},
dataFilter: (data, type) => {
debugger
}
},
pageLength: 25,
processing: true,
serverSide: true
Answers
How do you mean multiple ajax calls? DataTables will make an ajax call whenever new data is required, such as when you change the ordering or the paging, it wouldn't make calls otherwise.
Colin