Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save/Restore sorting with remote data #858

Open
KippWade opened this issue Jul 25, 2024 · 0 comments
Open

Save/Restore sorting with remote data #858

KippWade opened this issue Jul 25, 2024 · 0 comments
Labels
question Further information is requested

Comments

@KippWade
Copy link
Contributor

KippWade commented Jul 25, 2024

In our application, we save the sort order to our data store when the user sorts/filters the list. When the user returns to that particular list screen, we load the filters and sorting from the redux store.

We can reload the filters they had on the columns, using the Column defaultFilter prop.

I've tried to use the defaultSort prop in the same way, but didn't have any success.

I then tried to use the defaultOrderByCollection in the options, but when I load the page, it seems to default to the standard orderbycollection of all set to none.

I'm not sure if this is because we use remote data, or if the defaultOrderByCollection just isn't working right.

Any advise is appreciated.

https://stackblitz.com/edit/vitejs-vite-lmrvyn?embed=1&file=src%2FApp.tsx

What comes up
image

What I expected
image

@KippWade KippWade added the question Further information is requested label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant