pagination basic table load data according to page number


Topic: pagination basic table load data according to page number

Kutateladze asked 5 years ago

This is my question on stackoverflow. Do you know any solution or idea how to do this

https://stackoverflow.com/questions/61771960/mdbootstrap-pagination-basic-table-load-data-according-to-page-number?noredirect=1#comment109263846_61771960


Grzegorz Bujański staff commented 5 years ago

Hi. I'm afraid not. I see that someone sent there a thread where the problem of getting filtered values ​​is solved, but I understand that you didn't quite ask about it. The problem is that datatables dynamically sets the number of pages. For example: if you set 10 lines to appear on one page and download 100 records, then pagination will show 10 pages. But if you only want to download 10 records, how do you simulate that 10 pages should appear? I don't see option in docs to manually set how many pages should be available.


Kutateladze commented 5 years ago

It could be better, that I could set page numbers of pages by hand. For example, When I would get first page items from server, I would have also total number of pages (according to how many rows'd be in one page, I'd devide Total/ItemsNumberInOnePage).Otherwise, when I have 1k or more pages, It's very difficult to load data.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.18.0
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: Yes