Prevent multiple ajax calls from jquery datatable on server side pagination

Prevent multiple ajax calls from jquery datatable on server side pagination

gouravrathour007gouravrathour007 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

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    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

Sign In or Register to comment.