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

Make it possible to save Grid settings to local storage #7655

Open
mstahv opened this issue Aug 15, 2024 · 1 comment
Open

Make it possible to save Grid settings to local storage #7655

mstahv opened this issue Aug 15, 2024 · 1 comment
Labels
enhancement New feature or request vaadin-grid

Comments

@mstahv
Copy link
Member

mstahv commented Aug 15, 2024

Describe your motivation

For best possible UX many it would be good if the Grid settings like column widths, visibility and order, would be saved either automatically or by explicitly asking for it. The best place would be local storage as as a user I might oftent want different setting on different devices. Implementing this kind of features is currently diffucult and expensive for application developers.

Describe the solution you'd like

Grid should have a built-in feature that can save the current "grid settings" to local storage.

Describe alternatives you've considered

No response

Additional context

No response

@yuriy-fix yuriy-fix added enhancement New feature or request vaadin-grid labels Aug 15, 2024
@rolfsmeds
Copy link
Contributor

rolfsmeds commented Aug 15, 2024

This would be very nice to have.

Instead of simply storing the configuration in local storage, however, I would propose an API for getting a serialized string representing the config, so that you could store it elsewhere as well, e.g. the user profile table in your DB, a cookie, a QR code, or print it on a small note for carrier pigeon transport.

We actually have similar plans for the upcoming Dashboard component, that would provide an API for serializing the current dashboard configuration (widgets, positions, colspan, rowspan) for persisting in any way you like.

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

No branches or pull requests

3 participants