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

How to select the row that was selected before calling RefreshDataAsync #2980

Closed
JarJasAskom opened this issue Nov 27, 2024 · 1 comment
Closed
Labels
closed:duplicate Duplicate of another issue

Comments

@JarJasAskom
Copy link

FluentDataGrid has Items property set to IQueryable returned by EF Core context. SelectMode is DataGridSelectMode.Single.

I select one row in the grid, modify one value in the sql server table (using EF Core context) and call grid's RefreshDataAsync. FluentDataGrid shows the modified value but the selection is gone.

How to restore selection? How to select row that was previously selected after calling RefreshDataAsync or how to force RefreshDataAsync not to change selection if after refresh selected record still exists?

I can't use @bind-SelectedItems because items are only inside FluentDataGrid.

OnSelect/Property properties also does not help. After RefreshDataAsync Grid calls OnSelect with info that the record is now not selected.

@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New issue. Needs to be looked at label Nov 27, 2024
@vnbaaij vnbaaij added closed:duplicate Duplicate of another issue and removed triage New issue. Needs to be looked at labels Nov 27, 2024
@vnbaaij
Copy link
Collaborator

vnbaaij commented Nov 27, 2024

We currently do not have anything in place to do that. Similar to #2842. Closing this as a duplicate of that

@vnbaaij vnbaaij closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed:duplicate Duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants