-
Notifications
You must be signed in to change notification settings - Fork 684
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
Blazor database example's list page is reloaded when coming back from a details page #58
Comments
Hello @HubKing ... That's beyond the scope of the concepts addressed by the sample app, which are to demonstrate EF Core with Blazor. The approach the sample app takes is to merely return to the same page of results, and it would take a bit more work to make it do what you suggest, namely: include a property for the record Id in I think you have a good idea for a common use case in CRUD apps: A grid shows pages of records, select one that loads a different component that works with the record, either via closing the record detail component or selecting the browser's back button the grid reappears with the correct page loaded and scrolled to the record that the user selected. This is such a common case for apps that I think we could have an example. I'll make a note of this on one of my tracking issues, and I'd like to build it out with the NEW btw - The new In the meantime if you can't work out what's needed for this app's approach on your own, we refer devs to the usual public support channels, such as ... We only work on docs here and don't provide product support for developer apps. |
btw ... One more approach occurred to me ... virtualization. It's not a grid. It's more like a scrolling list container. https://learn.microsoft.com/en-us/aspnet/core/blazor/components/virtualization?view=aspnetcore-7.0 The problem is that it doesn't have a scroll position feature, which the product unit is considering for it in .NET 8 ... November, 2023 ... not much help in the near-term. It can be done with JS interop tho. Steve Sanderson put up an example that shows how to do it ...
|
Describe the issue
In the BlazorServerDbContextExample sample, if I go back from item details page to the list, the list reloads. This makes that the list page would lose the previous state such as scroll position. This will annoy users if the list is long.
If there is a way to keep the list page view in the memory and do not reload the list page when coming back, please explain the way to implement that in the sample's documentation.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Going back the list view exactly where I was.
Screenshots
Additional context
Add any other context about the issue here.
.NET Version
6.0
Issue Details
⚠ Do not edit this section. It is required for issue processing.
The text was updated successfully, but these errors were encountered: