Paginate based on data
Paginate based on data
pzh20
Posts: 66Questions: 15Answers: 0
in DataTables
I want to paginate based on a week number not just the number of entries to display. There might be 5 or 25 entries with a particular week number.
Is this possible?
Regards
Pete
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
It isn't available built in, but you could use the API to dynamically change the page length as you require. Use
page.len()
to change the page length.Another option which might be a bit more tractable is to use filtering. Simply have a different filter applied for each week with paging disabled.
Allan
Many thanks, I'll look into both options.
Regards
Pete