Page change

Page change

MarcelAmMarcelAm Posts: 1Questions: 1Answers: 0

Is it with Datatables possible to first get all the (db) IDs for the entire table and then at each page change, per page to retrieve the other data?

Answers

  • glendersonglenderson Posts: 231Questions: 11Answers: 29

    I think that you can you the selector() method along with an each() or every() to iterate over the data set.

    https://datatables.net/reference/type/selector-modifier

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    Hi,

    DataTables has two modes of operating - client-side and server-side. In client-side processing all data is loaded up-front, with server-side processing the data is loaded on a per page basis. This is detailed in the manual here.

    There is no "hybrid" option - you cannot get all ids and then selectively get other bits of information (unless you added some kind of proxy code that implements that).

    Allan

This discussion has been closed.