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

feat: add url support to DataGrid #2839

Open
svrooij opened this issue Oct 21, 2024 · 0 comments
Open

feat: add url support to DataGrid #2839

svrooij opened this issue Oct 21, 2024 · 0 comments
Assignees
Labels
community:contribution Issue will/can be addressed by community contribution feature A new feature
Milestone

Comments

@svrooij
Copy link

svrooij commented Oct 21, 2024

🙋 Feature Request

We have a grid with a link to a detail page, if we click the link and then return to the page with the grid, the paging info is lost. It would be great if we can automatically store that information in the url.

🤔 Expected Behavior

Change the url if the user is paging in the grid, by setting the url through the navigationmanager.

😯 Current Behavior

Paging information is lost

💁 Possible Solution

You tell the GridItemsProvider to load the current settings from the url upon load and save it to the url when changed. Possibly with a boolean to turn on this behavior.

🔦 Context

I considered building this myself, then thought I cannot possibly be to only one having this challenge.

💻 Examples

  1. Page /users has a grid with (server-side) paging
  2. The user goes to page 2 with the pagination control
  3. Automatically the url is changed to /users?page=2
  4. the user goes to a detail page
  5. the user presses the back button in the browser
  6. the user browses to /users?page=2
  7. the GridItemsProvider loads the paging information from the url
  8. The grid loads the correct data (page 2)
@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New issue. Needs to be looked at label Oct 21, 2024
@vnbaaij vnbaaij added feature A new feature status:needs-investigation Needs additional investigation and removed triage New issue. Needs to be looked at labels Oct 22, 2024
@vnbaaij vnbaaij added community:contribution Issue will/can be addressed by community contribution and removed status:needs-investigation Needs additional investigation labels Oct 23, 2024
@vnbaaij vnbaaij added this to the v4.11 milestone Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community:contribution Issue will/can be addressed by community contribution feature A new feature
Projects
None yet
Development

No branches or pull requests

2 participants