question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Add Total Page Number Option

See original GitHub issue

See this example:

https://github.com/AdeleD/react-paginate#props

Basically your options object would allow a “totalPageNum” or something that would be user-defined. So If your server has 1,000 users, and you show 20 users per page, then you would set “totalPageNum” to 50. Yes your plugin does this automatically IF you get all 1,000 users, but for us using server limits and offsets, I can only get 20 users at a time. So Now I have a table with only 20 users in it, but I need to show the web viewer they have more users to see based on the number of pages available to select (then I use your custom page click callbacks to get users based on the page selected).

With all your features for custom function callbacks and onPageClick call backs, this should already be in your plugin but I can’t find it. I can see if I can submit a PR, but not sure how much time I have. Am I missing something and this is already implemented? Just seems an obvious feature to have with this feature-rich library you have.

I think there is some misunderstandings of english terms too, because I see paginationSize but that turns out to REALLY be more of a range of pages to display, not that ACTUAL size of pages to display. I might suggest to change some of that wording around.

I guess I am requesting to be able to override the totalDataSize value, so I can just throw in “1000” and all pages will show according to the other options used (in my example, 50 pages should show up).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AllenFangcommented, Dec 1, 2016

hello @luisfuertes, sorry for lately reply. could you please describe your question that will helpful to me to help you?

Anyway, enable the remote prop which means you want to handle the data manipulation(ex: sort, insert, search, filter, pagin etc.) on your server or flux instead of react-bootstrap-table self. so the example mentioned before, is a simple example which we handle the paging outside of react-bootstrap-table.

You can check react component and its store to see how it work.

Let me know if you still have any question 😃

1reaction
jflayhartcommented, Jun 6, 2016

After delving into more of the source code and your remote examples, I noticed you do have this feature (I thought you would). Just needed to set remote={true}. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No option to add total number of pages to footer. #3610 - GitHub
This is a request for a feature / notification that an expected feature isn't available. In headers and footers in the Settings /...
Read more >
Include total number of pages in the page number
Go to Insert > Page Number. Do one of the following: Select Current Position if you have a header or footer. Select a...
Read more >
Word: Page Numbers - GCF Global
To add page numbers: · On the Insert tab, click the Page Number command. · Open the Top of Page, Bottom of Page,...
Read more >
How to Add Page Numbers in Word Document - YouTube
In this step-by-step tutorial, learn how to add page numbers in Microsoft Word. We start with how to add simple page numbers to...
Read more >
Add page numbering to your pages in Adobe InDesign
Page number markers are commonly added to parent pages. When parent pages are applied to document pages, the page numbering is updated ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found