T
TanStack2y ago
vicious-gold

How do I get all rows value including the paginated one

const orderFrom = table.getRowModel().rows?.length
? table.getRowModel().rows.map((row: any) => ({
value: row.original.orderFrom.country,
label: row.original.orderFrom.country,
}))
: []
const orderFrom = table.getRowModel().rows?.length
? table.getRowModel().rows.map((row: any) => ({
value: row.original.orderFrom.country,
label: row.original.orderFrom.country,
}))
: []
The above code show only the visible table rows not paginated one
4 Replies
quickest-silver
quickest-silver2y ago
Row Models Guide | TanStack Table Docs
Row Models Guide If you take a look at the most basic example of TanStack Table, you'll see a code snippet like this:
quickest-silver
quickest-silver2y ago
No description
quickest-silver
quickest-silver2y ago
table.getPrePaginatedRowModel()
vicious-gold
vicious-goldOP2y ago
@KevinVandy Thanks

Did you find this page helpful?