-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
Datagrid SelectedRows not Resetting/Clearing as expected. #3233
Comments
Hello @Mr-Pearce As for the
Still, that might not help you alot, since visually it still displays the previously Selected Rows. We'll fix both problems. Thank you for reporting. |
Hello @David-Moreira In my actual blazor app i have the Datagrid (with an actual class with multiple properties) inside an Modal and a Card (See Example down below), Here the "Working" Example:
|
Describe the bug
I Have a DataGrid with
SelectedRows="@myList"
andSelectedRowsChanged="@AddOrRemoveMyList"
When i select a row AddOrRemoveMyList gets hit
The Problem is: If i try to reset the selection like
myList= new List<MyType>();
AddOrRemoveMyList
is hitting afterwards but not with an empty list but with a list where only the last selected one is in it.The Selected Ui Items are also not changed. Leading to some weird selections.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Selection should be Empty, AddOrRemoveMyList shouldn't be hit, and if, then with an empty List of items.
Sample Code
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Vs 2019
Latest Version 0.9.5.2
net5.0 (5.0.12)
Blazor Serverside on Windows
The text was updated successfully, but these errors were encountered: