iTotalRecords and iTotalDisplayRecords on different keys

iTotalRecords and iTotalDisplayRecords on different keys

liago86liago86 Posts: 1Questions: 0Answers: 0
edited March 2014 in General
Hi, I searched a lot but with no luck. My json response has the iTotalRecords field in another key name(totalCount). Is there a way to specify that the values of iTotalRecords exist in different fields?

Replies

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    Not directly no (other than by changing the source - which you can of course do since it is open source!).

    In DataTables 1.10 you can use `ajax.dataSrc` as a function to manipulate the data returned from the server if you want to, converting your parameters to the ones required by DataTables.

    Allan
This discussion has been closed.