pagination question

pagination question

fogofogofogofogo Posts: 2Questions: 0Answers: 0
edited September 2011 in General
Hello

I have a table of 400 rows that needs to be split into 4 pages using pagination. Problem is, each page will contain a different amount of records. The first page will show 1 - 200, the next page will show 201 - 301 etc.

So the pagination navigation is going to look like this

1 - 200 | 201 - 300 | 301 - 350 | 351 - 400

Does any one know if this feature is easily achieved with this plugin?

Any help or advice is greatly appreciated

Replies

  • allanallan Posts: 63,531Questions: 1Answers: 10,475 Site admin
    The pagination in DataTables isn't designed to allow for this flexibility I'm afraid - it is designed to be uniform over all pages. If you didn't have sorting and filtering enabled then you could probably put in a paging control yourself that would feed data to the table as needed (i.e. click on 1 and use fnAddData to give it 200 rows, etc), but I don't think there is an easy way of doing it with the default paging.

    Allan
  • fogofogofogofogo Posts: 2Questions: 0Answers: 0
    ok - cheers Allan
This discussion has been closed.