Questions tagged [pagination]

Pagination is the process of dividing information into discrete pages.

Pagination is the process of dividing information into discrete pages. Pagination is often used for the purpose of printing or searching information.

Pagination in Web content (HTML, ASP, PHP, and others)

On the Internet, pagination is used for such things as displaying a limited number of results on search engine results pages, or showing a limited number of posts when viewing a forum thread. Pagination is used in some form in almost every web application to divide returned data and display it on multiple pages. Pagination also includes the logic of preparing and displaying the links to the various pages.

Links

Wikipedia Pagination

17657 questions
77
votes
14 answers

Swift tableView Pagination

I have success working tableview with json parsing code. But may have 1000 more item so I need pagination when scrolling bottom side. I don't know how can I do this for my code shown below. For objective-C, there are a lot of examples but for Swift…
SwiftDeveloper
  • 7,244
  • 14
  • 56
  • 85
76
votes
11 answers

How to use paginator from material angular?

I'm new to angular and trying to implement pagination in my app. I am trying to use this material component. With the code below, I can get length, pagesize, and pageSizeOptions in my .ts file
Drunken Daddy
  • 7,326
  • 14
  • 70
  • 104
76
votes
12 answers

How to implement pagination in React

I am new to ReactJS and am creating a simple TODO application in it. Actually, it is a very basic app with no DB connection, tasks are stored in an array. I added Edit and Delete functionality to it now I want to add pagination. How do I implement…
Nitesh
  • 823
  • 1
  • 10
  • 15
74
votes
8 answers

Pagination in Spring Data JPA (limit and offset)

I want the user to be able to specify the limit (the size of the amount returned) and offset (the first record returned / index returned) in my query method. Here are my classes without any paging capabilities. My entity: @Entity public Employee { …
chinesewhiteboi
  • 1,045
  • 1
  • 10
  • 10
73
votes
7 answers

How to convert a list of enity object to page object in Spring MVC (JPA)?

I have a List of entities. How do I convert it to Page Object using Spring MVC 4 and Spring Data JPA?
briantaurostack7
  • 1,193
  • 2
  • 14
  • 36
73
votes
13 answers

Calculating item offset for pagination

this seems like very simple maths but somehow, my brain cant think ... i am trying to implement pagination and will need to calculate the item offset to use in limiting my result set. i am having problems calculating what index the first item of…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
72
votes
3 answers

MongoDB ranged pagination

It's said that using skip() for pagination in MongoDB collection with many records is slow and not recommended. Ranged pagination (based on >_id comparsion) could be used db.items.find({_id: {$gt: ObjectId('4f4a3ba2751e88780b000000')}}); It's good…
Roman
  • 3,799
  • 4
  • 30
  • 41
72
votes
24 answers

Custom pagination view in Laravel 5

Laravel 4.2 has the option to specify a custom view in app/config/view.php such as: /* |-------------------------------------------------------------------------- | Pagination…
user2094178
  • 9,204
  • 10
  • 41
  • 70
67
votes
5 answers

Use Limit and Offset in Doctrine2 query

I'm trying to do the pagination, but there is an error: [Syntax Error] line 0, col 57: Error: Expected end of string, got 'limit' I'm not quite sure if this is the right syntax (and logic) to make my query: public function getFriendsFromTo ($user,…
Faery
  • 4,552
  • 10
  • 50
  • 92
65
votes
5 answers

How to implement cursors for pagination in an api

This is similar to to this question which doesn't have any answers. I've read all about how to use cursors with the twitter, facebook, and disqus api's and also this article about how disqus generally built their cursors, but I still cannot seem to…
Micah
  • 111,873
  • 86
  • 233
  • 325
65
votes
19 answers

disable pagination if there is only one page in datatables

I am implementing datatbales and according to my requirement, most of the things have been resolved except the pagination issue. In my case for every time pagination navigation is displaying. I want to disable the pagination navigation if there is…
Bappa
  • 799
  • 1
  • 9
  • 17
62
votes
10 answers

HTML book-like pagination

How can I split the content of a HTML file in screen-sized chunks to "paginate" it in a WebKit browser? Each "page" should show a complete amount of text. This means that a line of text must not be cut in half in the top or bottom border of the…
hpique
  • 119,096
  • 131
  • 338
  • 476
62
votes
4 answers

Django Rest Framework - APIView Pagination

I have a very simple APIView, but I don't know how to setup pagination here. In this scenario I select an Event with given pk, then I get all the NewsItems assigned to this Event. pagination_class = LimitOffsetPagination works OK when I define…
user3128673
  • 663
  • 1
  • 5
  • 6
58
votes
7 answers

Find total number of results in mySQL query with offset+limit

I'm doing a pagination feature using Codeigniter but I think this applies to PHP/mySQL coding in general. I am retrieving directory listings using offset and limit depending on how many results I want per page. However to know the total number of…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
57
votes
13 answers

How to automatically append query string to laravel pagination links?

I am working on search filter on checkbox click, with Laravel and Ajax call. So I get results when I click on a checkbox. my query is as follows: $editors =…
user2067888
  • 1,085
  • 3
  • 11
  • 17