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

param index in getRow always init in 0 #11

Closed B0ringM4n closed 3 years ago

B0ringM4n commented 3 years ago

Please provide as many information as possible to answer your question.

is there any reason why the index parameter should always ask for 0 to rowPerPage?. When I change the page the first item is repeated and so in the later pages, but the page number is updated, and check my List of items and the new items are obtained

Dev-Owl commented 3 years ago

Each page always starts with row zero. The concept of a server side paged table is that you only have a single page in the client, the overall position is unknown and not important. If you want you can calculate it by using the amount of rows by page and the current page number.

If you order the data keep in mind that the same index could be a different row. Same for server side filters, they might reduce the amount of total rows.