Server Side Ajax Page navigation(numbers or next button) not working

Server Side Ajax Page navigation(numbers or next button) not working

AnishsAnishs Posts: 2Questions: 1Answers: 0

The first request to the server is working fine, datatable is updated with data correctly. When I click on page navigation(numbers or next button) request is sent corrently to server, and response is returned correctly. The datatable data is not refreshing, and it remains in the first page.

Extract from datatable config..

buttons: ['excel', 'pdf', 'print'],
pagingType : "full_numbers",
processing: true,
serverSide: true,
sServerMethod: "POST",
lengthChange: false,
iDisplayLength: 25,
"ajax": {
"type": "POST",
"url": "url_path",
"data": $("#submittedApplication").serializeObject()

     } ,
     aoColumns: [
              ----------
      ],
     footerCallback: function ( row, data, start, end, display ) {

**My request contains
**
draw:20

columns[0][data]

start:100
length:25
search[value]:
search[regex]:false

Response contains
amount: 25
draw: 20
iTotalDisplayRecords: 1750
iTotalRecords: 1750
message: null
recordsFiltered: 1750
recordsTotal: 1750
sColumns: null
sEcho: "1"
start: 100

I am using same response class(Java) to handle legacy and new datatable so you see iTotalDisplay*** and recordsTotal and recordsFiltered in the response.

Please help!!

Answers

  • AnishsAnishs Posts: 2Questions: 1Answers: 0

    Fixed. I seperated the response class(Java), created a new one for new new datatable.
    sEcho & draw dont like each other or hubby & wife :-)

This discussion has been closed.