Beltic Posted July 23, 2014 Share Posted July 23, 2014 Following the book I have successfully used pagination. It looks great! Now however, Im getting to the point where I have multiple rows of page numbers. What could I start to look at so instead of this, < 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39> I could get this, < 1... 8 9 10 11 12 13 ...39 > Thanks! Link to comment Share on other sites More sharing options...
Larry Posted July 24, 2014 Share Posted July 24, 2014 Interesting question! I guess I'd get a count of how many pages there are. Link to the first. Then find the middle, and link to a few pages before and after the middle, then link to the last page. Link to comment Share on other sites More sharing options...
HartleySan Posted August 3, 2014 Share Posted August 3, 2014 Beltic, certainly, anything is possible, but I think it might be best to look around the web and see what other people are doing. Here are a few ideas: Provide more results per page. Do what Larry suggested, which is calculate the total number of pages, and then calculate the middle, or allow jumping to 2-3 pages on both sides of the current page, etc. Provide a search feature or filters that allow the user to find what they really need. If you really have so many rows that you have that many pages, no one is going to search through all of that for what they need. As such, some sort of searching/filtering is necessary, I think. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts