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
21
votes
6 answers

Django Rest Framework pagination extremely slow count

I turned pagination on in Django Rest framework and it appears to be incredibly slow. Count looks like the culprit, and is taking hundreds of milliseconds to return each time due to the millions of rows in the tables. I am using postgresql as the…
Smills
  • 736
  • 1
  • 6
  • 17
21
votes
6 answers

Yii2: How do change Pagination-Per-Page into RESTful Web Service API?

I am developing an application using AngularJS for the frontend and Yii2 for the backend. The frontend requires a comprehensive array of all users. In the documentation of Yii2, http://www.yiiframework.com/doc-2.0/guide-rest-quick-start.html I can…
Janka
  • 1,908
  • 5
  • 20
  • 41
21
votes
5 answers

bootstrap 3 pagination with codeigniter

I cant integrate the bootstrap 3 in my pagination, I am using codeigniter in my system, here is my code so far $config['base_url'] = base_url()."/merchant/?"; $config['total_rows'] = $count_result; // Count total rows in the query …
21
votes
5 answers

ResultSet to Pagination

How do I convert Resultset object to a paginated view on a JSP? For example, this is my query and result set: pst = con.prepareStatement("select userName, job, place from contact"); rs = pst.executeQuery();
Gnaniyar Zubair
  • 8,114
  • 23
  • 61
  • 72
21
votes
4 answers

How to handle pagination with Knockout

I have a div that is setup to bind to a observeableArray ,but I only want to show at most 50 items from that observeableArray at any given time. I want to handle this with pagination with a previous and next button along with indices on the page to…
nobody
  • 7,803
  • 11
  • 56
  • 91
21
votes
3 answers

Paginate relationship in Django REST Framework?

We are using Django REST Framework for our API and we have a need to paginate relationship fields that return multiple items. To demonstrate using examples similar to those in the documentation: class TrackSerializer(serializers.ModelSerializer): …
20
votes
4 answers

How to do page navigation for many, many pages? Logarithmic page navigation

What's the best way of displaying page navigation for many, many pages? (Initially this was posted as a how-to tip with my answer included in the question. I've now split my answer off into the "answers" section below). To be more…
Doin
  • 7,545
  • 4
  • 35
  • 37
20
votes
2 answers

How to implement general pagination

I am not looking for a Hibernate/JPA/JDBC implementation, but for a general design pattern. Googling "pagination" gives me loads of information, lot of interesting articles that explain how to implement pagination on the UI and various…
sachink
  • 395
  • 2
  • 5
  • 12
20
votes
1 answer

Send all data of paginated jQuery DataTables table to server side instead of only current page

I have a form with jQuery DataTables table. Once submitted, it will get all the data and save it into the database. However, when I'm using pagination, then it will save only the data of the current page and not other pages. I tried to do…
SCS
  • 1,162
  • 3
  • 17
  • 31
20
votes
3 answers

Rails active_model_serializer with pagination

I'm using active_model_serializer. Now I want to serialize an object with pagination, should I do the pagination logic in the controller or in the serializer? If I choose to do the pagination in serializer, I need to pass the page_number and…
20
votes
8 answers

Paginating the results of a Django forms POST request

I'm using Django Forms to do a filtered/faceted search via POST, and I would like to Django's paginator class to organize the results. How do I preserve the original request when passing the client between the various pages? In other words, it…
andyashton
  • 548
  • 2
  • 5
  • 15
20
votes
3 answers

What's the difference between CRUD and CRUDL?

I don't understand the difference between read and list. According to Wikipedia: The acronym may be extended to CRUDL to cover listing of large data sets which bring additional complexity such as pagination when the data sets are too large to…
BiGXERO
  • 7,104
  • 8
  • 23
  • 25
20
votes
5 answers

p:dataTable selections are lost after paginating a LazyDataModel

My problem is that after I've selected a few items on the 1st page, if I paginate to another page and come back, my initial selections are not shown. I've tried to implement the SelectableDataModel as well as using the rowKey attribute but the…
Mr.J4mes
  • 9,168
  • 9
  • 48
  • 90
19
votes
2 answers

react-table pagination properties doesn't exist on type 'TableInstance{}'

I'm trying to implement a pagination using react-table. In most tutorials we start with this: const { getTableProps, getTableBodyProps, headerGroups, page, prepareRow, visibleColumns, …
Tobi
  • 213
  • 1
  • 2
  • 7
19
votes
3 answers

How the "FBReader" do the pagination of html files in epub

I'm trying to make an epub reader I want to do the pagination like fbreader does Now I have source code of fbreader, but I don't know where it implement pagination I have my implementation on other features All I need from fbreader is the…
Qing
  • 3,029
  • 7
  • 25
  • 31