Dev-Owl / advanced_datatable

Advanced Datatable uses the Fultter PaginatedDataTable Widget and adds a few more functions to it
BSD 3-Clause "New" or "Revised" License
16 stars 16 forks source link

Pagination bug when using search or filtering feature. #25

Closed mrnotepad closed 2 years ago

mrnotepad commented 2 years ago

Pagination doesn't work when filtering only shows 10 pages. next page is not clickable or disabled.

Steps to reproduce the behavior using the demo:

  1. Go to search bar
  2. Type example "a"
  3. See bug.

Only displays 10 items and the pagination is not clickable.

kkalisz commented 2 years ago

I have checked what is wrong. So it looks that when filtering is on, RemoteDataSourceDetails field "filteredRows" has a value corresponding to a current number of rows returned by server instead of "The total amount of rows after a filter was applied".

I think that for fixing the sample, the total number of filtered rows should be returned by api.

image