Closed Stephen-Lamb closed 1 week ago
The reason seems to be that the object references are not the same after clicking on the Reload button (of course because the the GenerateSampleGridDataAsync
is called).
For example, adding this debug code below the Button:
@(String.Join("; ", SelectedItems.Select(i => i.GetHashCode().ToString())))
And this new column:
<PropertyColumn Title="Hash" Property="@(c => c!.GetHashCode())" />
I need to investigate how to unload the previous object references in this case.
I found a solution to fix this. See #2209
Many thanks @dvoituron! I'll give it a test in the next release :-).
🐛 Bug Report
The Select All checkbox for a SelectColumn in a data grid stops working (no longer checks row checkboxes) after reloading data for the data grid, when the Virtualize parameter is also set for the grid.
💻 Repro or Code Sample
🤔 Expected Behavior
Checking/unchecking the Select All checkbox for the Select Column should check/uncheck row checkboxes in the grid.
😯 Current Behavior
After reloading data for a grid with the Virtualize parameter set, checking the Select All checkbox no longer selects any other checkboxes in the grid.
💁 Possible Solution
🔦 Context
We have many data grids in our app, and reloading data for a grid from a backend database is a common occurrence. I would expect the Select All checkbox to continue working after reloading data for a grid.
🌍 Your Environment