T
TanStack16mo ago
stormy-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
like-gold
like-gold16mo 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:
like-gold
like-gold16mo ago
No description
like-gold
like-gold16mo ago
table.getPrePaginatedRowModel()
stormy-gold
stormy-goldOP16mo ago
@KevinVandy Thanks

Did you find this page helpful?