Server Side Pagination and Sorter

Server Side Pagination and Sorter

lfamorimlfamorim Posts: 2Questions: 0Answers: 0
edited March 2009 in Plug-ins
Anybody here know about the existence of any extension of the DataTable that allows the extension for sorting and paging server-side? It is very useful for cases where the return Ajax is too long.

Replies

  • allanallan Posts: 63,573Questions: 1Answers: 10,483 Site admin
    Hi Ifamorim,

    This is talked about in this thread: http://datatables.net/forums/comments.php?DiscussionID=7&page=1 . Basically server-side pagination / filtering etc, can't be done with DataTables at the moment I'm sorry to say. There are a number of reasons why, and these are discussed in the other thread.

    Regards,
    Allan
  • lfamorimlfamorim Posts: 2Questions: 0Answers: 0
    edited March 2009
    I understand ...
    Do You have some tips for those who want to implement anything like that? Currently the only plugin to provide this support is in the Flexigrid. It is incredibly slow.
  • allanallan Posts: 63,573Questions: 1Answers: 10,483 Site admin
    I believe the YUI table plug-in ( http://developer.yahoo.com/yui/datatable/ ) can use server-side pagination etc. Part of the problem is that it is very slow to get the data on every draw. Basically want is needed is to provide a whole bunch of event listeners (rather like DataTables does) and to send the required information to the server (sorting, filtering etc) and then deal with the response. DataTables could possibly be cannibalised for something like this and I might well give it a go sometime - just a question of time! :-)

    Allan
This discussion has been closed.