mbrn / material-table

Datatable for React based on material-ui's table with additional features

Home Page:https://material-table.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to previously set page and sorting (programmatically)

kbrueckner opened this issue · comments

How to previously set page and sorting (programmatically)

Since I use material-table for rendering a search result but i do have advanced search requirements, I had to go the route to not use the tables search fields with data loader but have to do the search triggering and retrieving the result externally. The result is passed in to the table via the data attribute.

All this is not an issue, the only problem I am facing is, whenever the user hits the search again an the search result changes, I want toe paging and filtering to be reset to default. How can that be achieved? The search result (and therefore the data attribute) change but the rendered table stays at the previously selected state (page and filters)

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.