Dev-Owl / advanced_datatable

Advanced Datatable uses the Fultter PaginatedDataTable Widget and adds a few more functions to it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

param index in getRow always init in 0

B0ringM4n opened this issue · comments

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

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.