Questions tagged [pagination]

1

votes
1

answer
96

Views

Merge, join or append the data of two Rxjs Obresvable

For pagination purpose I am using the following code in Ionic 3 using Angular and Firestore. First time request: collObs: Observable; more: Observable; this.collObs = this.afs.collection('data').limit(10).snapshotChanges().map(a=>{ return a.map(x=> { return { value: x.payload.doc.data(), }; }); });...
Tapas Mukherjee
1

votes
2

answer
2k

Views

How to link table and pagination of Element UI?

I work on Vue.js and use the Element UI library. I have an el-table containing a lot of data, and an el-pagination just below, but I don't manage to connect them. For now, when I click on a different page of the pagination, the selected number of the pagination element changes but it doesn't updat...
hnrd
1

votes
0

answer
43

Views

Classic Asp Pagination through JavaScript

Clicking 'Next' current page crossed total pages. JavaScript below: function paging(x){ var x; var myAjax = new Ajax.Updater('dvReport','process.asp',{method:'get',parameters:{mode:'search_pabx_report',x:x}}); } Sample output is attached x=request.QueryString('x') Const NumPerPage = 500 If Request....
Hijbul
1

votes
1

answer
151

Views

AWS Athena asynchronous pagination in Python

I am creating an Athena connector for my Python application but large results take too long to process if I go with the usual synchronous pagination. Thus, I was curious if there is provision for asynchronous pagination through the Boto client or some other solution for optimized execution of large...
1

votes
0

answer
49

Views

Codeigniter Link to Accordion Item with Pagination

Using Codeigniter 3 and Bootstrap 4. Background, I have a section of my website displaying 'Random Records', clicking on these should take you to the corresponding record. However it only works for my first page of records. I have setup pagination in CI and it all works as expected, I can navigate t...
TheOrdinaryGeek
1

votes
1

answer
181

Views

How would you implement a rich text editor with pagination?

As a part of a bigger project I'm going to implement a rich text editor with pagination. Because of previous bad experiences with content-editable I would prefer the editor to use an approach with a document model (e.g., prose-mirror and slate). The editor is going to have only a handful of elements...
user3198085
1

votes
0

answer
111

Views

paginate_by how to display ellipsis - Django

I have a web built in Django, I would like to paginate like this(/admin) But my page is paginated as below: I have a list.html as below: {% if is_paginated %} {% if page_obj.has_previous %} « {% else %} « {% endif %} {% for i in paginator.page_range %} {% if page_obj.number == i %} {{ i }} (curren...
Begin2Pip
1

votes
1

answer
211

Views

Why is it that LoadParams.requestedLoadSize returns the specified page size to LivePagedListBuilder times 3?

I am creating a PagedList using: LivePagedListBuilder(dataSourceFactory, 20) Inside my implementation of PageKeyedDataSource, loadParams.requestedLoadSize returns 60. I tried with other numbers, and it seems that loadParams.requestedLoadSize always returns the page size I specified times three. Anyo...
user932178
1

votes
1

answer
40

Views

Paging in Angular JS

I am using Angular 1 and using dir-paginate control for paging. But needs to show as 10|25|50|100|All option in bottom and top of the page. How can I achieve this? Thanks
user5863509
1

votes
0

answer
33

Views

How to add pagination to ajax results in wordpress

i want to paginate my ajax search results in ajax pagination can anyone help to paginate this i try to search google but i dont found anything. i found more information about wp_query but thist data is not for me because i dont use posts My ajax function in function.php for get data from table: add_...
Alex Luminoso
1

votes
3

answer
327

Views

How do I paginate using swift and firebase?

I am working on an iOS app which has features similar to Instagram. I have successfully done pagination on my profile page but constantly failing to get the right result in my home feed. Goal - to fetch the posts in chronological order by date. Latest one should come first. Posts are from the people...
Api42
1

votes
1

answer
70

Views

How to initiate next request before yielding in asynchronous generator in python

I'm attempting to get some data from a paginated API (specifically github's, but the API doesn't matter for this question). I'm using a python asynchronous generator to yield each individual row from each page. The code looks something like this: async def get_data(): cursor = None with aiohttp.Clie...
Lucretiel
1

votes
0

answer
31

Views

Issue with 'Will_paginate' while refresing the page

I'm using pagination for my review slide panel. The problem is that each time I click on 'next page' the page refresh and I have to go back to see that page. Anyone knows the solution in this or similar situations? Thanks!
Luka
1

votes
0

answer
49

Views

How to fetch remote data page by page using kendo grid in jsp?

I am trying to fetch remote data(millions of rows) and showing in kendo grid. As a regular approach its fetching all data at a time But I want data according to page size like if pageSize : 1000 rows. When I load grid first time then fetch first 1000(1-1000) rows when I clicked on next page then fet...
New-Learner
1

votes
0

answer
25

Views

jQuery DataTables with pagination

I have more than 5000 records. Now if I fetch all than my page hang for 10-15 seconds and then show records, I know it is obvious. Record from where I am fetching is some kind of API. It have facility to fetch record page wise (i.e. record count starting from 20 ) and total number of record (i.e. 1...
Milind
1

votes
1

answer
50

Views

MVC Core Compare PagedList vs OrderBy Skip Take

There are two methods to create pages for lists in MVC Core. Eg, I have a list of 20 items, and want to display 5 items per page, like a shopping website. What are the benefits/comparison of using one over the other, is there general industry practice? I am trying to understand, many different flavo...
1

votes
0

answer
62

Views

Yii2 - find page number by Object

I need you help. I trying to find right solution for my task. Imagen, I have a books id | name -------- 1 | book1 2 | book2 and books has chapters id | name | book_id ------------------- 1 | chapter1 | 1 2 | chapter2 | 1 There is page for book and another page for chapters with pagination li...
Dan4ik
1

votes
1

answer
132

Views

how to apply pagination.js with ui-grid

At the moment, I can successfully display the pagination controller, but I have a situation where when I click on the next page my uigrid table does not change the content immediately, and it only changes when I mouse over the table. (the information of pagination.js is on http://pagination.js.org )...
Etienne-qwer
1

votes
0

answer
198

Views

Firestore Live pagination for new items added

I have a chat pagination service that can receive older items in a Firestore collection. Its starting point is the newest document in a collection at init. But the problem that I am running into, is adding newer items to the observable after init, that weren't there when the service began pagination...
Jordan Benge
1

votes
2

answer
437

Views

Implementing pagination in React that displays 15 items per page from a JSON file

I am having issues on even trying to get started with doing pagination without the use of any packages. I am pulling data from a JSON file that contains about 30-32 quotes. I need 15 quotes per page to be displayed and have no idea how to even do that using React. So far what I have is all the quote...
rnkwill
1

votes
2

answer
52

Views

Codeigniter pagination giving 404 error

Could you help me with my problem about pagination in Codeigniter? I have a view that lists books. I wrote some code and now I see the buttons but the content is not limited as I wished. Can't find what is wrong with the code. That is the updated code: Controller: public function index($offset=0){...
Ecem Belgin
1

votes
0

answer
227

Views

Pagination with staggeredGridLayoutManager and recyclerView

Hello I need to make the infinite scrolling (Pagination) with the recyclerview using the staggeredGridLayoutManager. Pagination is working but the problem is that onLoadMore() function is called so many times while scrolling which causing problems, here is my code: newSearchAdapter = new NewSearchAd...
1

votes
2

answer
208

Views

Django sort on paginated results

I am creating a list view in Django 2 using CBV. The pagination is working however I am now trying to add sorting to my pagination. This sorting will work whereby when the user selects a column, it will append a GET query string and then when I render my view, I will order_by the QueryResult. This i...
liamjnorman
1

votes
0

answer
534

Views

Angular 6 - Dynamic Search with HttpParams + Pagination

This is not a question. I am sharing the knowledge I gained after much research and testing. I built a search for optional fields using angle 6 and HttpParams. I am sharing this, because I searched a lot, not having been successful in the search. Dev. Env.: Angular 6.0.9, Spring boot 2.0.7. Form: C...
1

votes
1

answer
247

Views

UITableView Pagination willDisplay call again and again swift

I am trying to implement pagination in UITableView after searching this question on stackoverflow and google i got many method but facing same problem in all the solution, in willDisplay last cell method calling again and again so pagination does not work it load data in loop before i move to l...
Jhony
1

votes
0

answer
101

Views

Simple pagination in laravel?

I am working with simple pagination in laravel. I am fetching 20 records from the database in a foreach loop and making a quiz. I want to skip some question in between quiz by applying if condition in controller part...like I want to skip question number 10 and 11. How to proceed in simple paginatio...
prasoon mudgal
1

votes
1

answer
645

Views

How to actually implement pagination/sorting/filtering in a JAX-RS/Jersey REST application?

I've been searching for an answer to this problem and found a lot of resources on how to build a REST API that supports pagination, sorting, and filtering, using what are considered best practices by each author. The problem lies in the fact that these best practices seem to be subjective and there...
Bernardo Lopes
1

votes
0

answer
54

Views

Qlikview REST connector pagination settings for OData source xml

I can't seem to get the pagination settings right for the Qlik REST connector getting data from an OData-source. It's publicly available Dutch statistics (CBS). An example is: https://opendata.cbs.nl/ODataFeed/odata/37259ned/TypedDataSet First bit of the response: https://opendata.cbs.nl/ODataFeed/O...
Leo Timmermans
1

votes
0

answer
84

Views

Django: prefetch and paginate relative objects

I have a simple two-level comments system with model class Comment(models.Model): text = models.TextField() parent = models.ForeignKey('self', related_name='children') In view I need to paginate first and second level comments. Now I do it like this: from comments.models import Comment from django.c...
MaxCore
1

votes
1

answer
34

Views

Pagination, wrong amount of results on first page

I'm making news website, and I have mysql db with field 'time' like 1533074400 Everything is ok if I just print results from query, but if I want to print only news older than today, I get in result only 2 instead of 5 news on first page. Remaining 3 are on the second page. The problem is with query...
JoeDoe291291
1

votes
0

answer
117

Views

Creating pagination with ajax call to controller

I have the following .cshtml page: @model LumpSumInvoice.Business.ViewModels.ProductViewModel @{ App.ButtonNew = true; } Products @Html.DisplayNameFor(model => model.Id) @Html.DisplayNameFor(model => model.Id) Add product × @Html.AntiForgeryToken() Name @Html.EditorFor(model =>...
codeproject
1

votes
0

answer
197

Views

How to use UriBuilder.queryParam without encoding parameters?

I'm writing a REST API endpoint with pagination and I want it to include the links to the first, previous, next and last pages. I also want these links to include whatever parameters that were sent in the original request (BTW is that a bad idea?). I'm using the UriBuilder class to create those link...
uzilan
1

votes
0

answer
221

Views

how can i call function when clicked angular 6 mat-table pagination buttons for update table value

In angular 6 I want to display in mat-table the first page after initializing it with default values startIndex and endIndex. But after I click on the pagination buttons, the table values are not updated, but pageValues changed. getRangeLabel function returns the correct value but Start Index: {{sta...
Ulugbek Diyarov
1

votes
0

answer
40

Views

How can I custom the links in an NgbPagination?

I am currently working on an angular project (actually it is done with Jhipster), and there are some components which use pagination in this app. I realized that, when I right-click on a link of one of the pages, I am redirected to the home. For example, let's say I have 5 pages in my pagination. If...
nugetchar
1

votes
0

answer
876

Views

Implementing ngx-pagination as a custom component

I have two components: list.component and pagination component, within list component I want to write logic of listing records, and I want to use ngx-pagination npm package to control pagination of given listing: list.component.html: Member Phone Email Action {{record.firstname}} {{record.phone}} {{...
Harsimer
1

votes
0

answer
114

Views

Opencart (3.0.1): Pagination doesn't work after search

I have an web store based on the OpenCart 3.0.1. The representation on the screen is so called 'endless scroll' when new items are loaded while you are scrolling (auto page loading). 9 elements are loaded at once (page). The procedure of search shows maximum 9 items relevant and then, when you are s...
user3880145
1

votes
1

answer
87

Views

Firebase database pagination scrolling action

I'm following the tutorial: https://codelabs.developers.google.com/codelabs/firebase-android/#6 I was trying to achieve pagination, Here is what i have modified: ... Query query = databaseRef.limitToLast(50); ... FirebaseRecyclerOptions options = new FirebaseRecyclerOptions.Builder() .setQuery(query...
asdfghj1237890
1

votes
0

answer
77

Views

recyclerview jumps to top on paging in android

In MVP pattern, I have a list that fetched from server by retrofit, while implementation pagination, my infinteScrollListener just return the fixed page number and the list jumps to top. my code is below: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCon...
ehsan amini
1

votes
0

answer
202

Views

JQuery datatables with the large amount of data?

I have developed some tabs in my application where I use JQuery Datatables to load the data. I use JavaScript/JQuery, HTML5, Bootstrap 3 and ColdFusion 2016 on the back end to communicate with SQL 2008 database. For example user will be able to search through Users table. They can filter by Name, Us...
espresso_coffee
1

votes
0

answer
63

Views

Boto Pagination for Kafka Topic

I'm learning Kafka on python. The source system sends the clickstream data for minute into S3 bucket under prefixes created for every minute.I want to use boto Pagination on S3 to read the data continuously and send the data to Kafka Topic. This Kafka Topic will be read by another team to do some a...
Jerome

View additional questions