Mixing Server-Side & Client-Side

Mixing Server-Side & Client-Side

c0rl0c0rl0 Posts: 1Questions: 0Answers: 0
edited February 2010 in General
Hi,

I just came across DataTables and it looks fantastic! There's something in particular I'm attempting to do, and I'm not sure if DataTables will support it.

I'd like to use client-side pagination (DOM), but server-side sorting and filtering. Is there anyway to do this? From what I can tell by the documentation and looking through the forms it's an all or none approach.

Thanks!

Replies

  • busyoonhi@yahoo.combusyoonhi@yahoo.com Posts: 5Questions: 0Answers: 0
    It's not possible. I wanted to fetch server side data as described in the pipeline example but wanted to do the client side pagination and filtering.You will have to use the fnAjaxReload() function to get around it.

    Thanks,
    Busyoonhi
  • allanallan Posts: 63,700Questions: 1Answers: 10,501 Site admin
    The closest you can get to this is to use pipelining: http://datatables.net/examples/server_side/pipeline.html . It will load a bigger subset of the database records then is shown at any one time, but still a sub-set of the over all data set.

    Allan
This discussion has been closed.