Pagewise Sorting

Pagewise Sorting

preetypreety Posts: 5Questions: 0Answers: 0
edited February 2012 in General
Hi,

I am doing a server side fetch of records for each page but I want to control sorting only for the page I am in. With the server side setup, if I click sort it would a sort on whole data set and take me to page 1. What I am trying to do is to start with there is no sort but the sorting is done only on current page data whenever clicked on a column.

How do I achieve this?

Thanks,
-Preeti

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Currently in DataTables there is no method of doing this. You would need to write a plug-in that would interface with the DataTables internals to sort only the current page - it is perfectly possible to do, but I'm afraid I don't have an example of how it could be done.

    Allan
This discussion has been closed.