aaData and serverside paging

aaData and serverside paging

oliveroliver Posts: 2Questions: 0Answers: 0
edited January 2012 in General
I'm trying to bind my grid to a local array of data (which is working great), but I need to implement serverside processing for paging support. I can't expose a url with access to this data, we currently use an internal set of javascript callbacks to gather the data from the server. The server calls are ready to support paging, I just can't figure out how to override fnServerData to hook in the data returned from the previous callback. Are there any examples online for wiring up paging with a javascript array datasource? or maybe any pointers from someone that might have done something similar?

Replies

  • oliveroliver Posts: 2Questions: 0Answers: 0
    Basically I need to override the total rows count, and hook into the paging events to trigger another custom callback to the server for a new array of data. I've tried quite a few examples without any luck so far just trying to override the _iRecordsTotal variable.
  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    > I'm trying to bind my grid to a local array of data (which is working great), but I need to implement serverside processing for paging support.

    DataTables currently supports either fully client-side processing or fully server-side processing - not a mix of the two. For example you can't do filtering client-side and paging server-side (since filtering requires the full data set, which the client-side doesn't have).

    The closest you can get is Ajax loading data, an using fnReloadAjax to reload data as needed. However, that doesn't allow paging support since again, that is either client-side or server-side only.

    Allan
This discussion has been closed.