-
I'm working on a Table implementation for my app with paging included. What I would like to do is to programmatically select a certain item in the table and, if that item appears beyond the first page, open the correct page and scroll directly to the item. I think I have figured out how to select the item programmatically. But if it is not on the first page, I have to manually select the correct page in the paginator below the table in order to see the selected item. Is it possible to somehow open that page programmatically? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Chris 👋 Thanks for the question. Assuming this programmatic selection is only on initial load, you can use the <Table
...
initialState={{ pageIndex: 2 }}
/> If you need to do it after initial load, then you have two options:
Hope that helps. |
Beta Was this translation helpful? Give feedback.
Hi Chris 👋 Thanks for the question.
Assuming this programmatic selection is only on initial load, you can use the
initialState
prop where you can passpageIndex
.If you need to do it after initial load, then you have two options:
Hope that helps.