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

Column order storage does not save value #74

Open
tomdillien91 opened this issue Jul 2, 2021 · 2 comments
Open

Column order storage does not save value #74

tomdillien91 opened this issue Jul 2, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@tomdillien91
Copy link

When trying out the demo application of smart table. The selected smarttable filter values are not saved and lost after refresh.

@jsebrech
Copy link
Contributor

jsebrech commented Jul 28, 2021

With respect to filter values: this is currently by design. Filters are not persisted, only column settings.

There are two ways to persist filters with the current smart table:

  1. Client-side: listen to the filter event, persist the filter values, when showing the new smart table set customConfiguration to the value of configuration fetched from the server, but patching filters with the persisted values.
  2. Server-side: whenever the filters are changed, persist them for the current user. when fetching the configuration, include the persisted values for the user in the configuration.

@jsebrech jsebrech added the enhancement New feature or request label Jul 28, 2021
@jsebrech
Copy link
Contributor

With respect to column order or visibility: I could not reproduce this issue. When running the smart table demo app locally the column visibility and order are persisted across page refreshes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants