I need a function to change the page of the table

I created a table that does server side pagination.
I also created a search bar.

If the current table page is 2 pages.
When I run a search, I want to show the results as the first page.

This becomes a problem when the number of search results does not exceed 1 page.

I need this feature. How is this possible?

1 Like

Hi kimdal, I'm happy to help you look for a solution here :grinning_face_with_smiling_eyes: Just to clarify here is my understanding of your problem. You have a table that is set up to show server-side paginated data. You also have a search that pulls in additional data to your table. You want the search to show its data in the same table and take up the entire first page even when there aren't enough results to fill the first page. Is that right? Please correct me if I am wrong.

@everett_smith How do we change the page number of a table programmatically?

In a JS query or somewhere else ... yourTableName.setPage(valueHere)