MudDataGrid: Refresh grouping after InvokeServerLoadFunc, ExpandAllGroups, CollapseAllGroups#9150
MudDataGrid: Refresh grouping after InvokeServerLoadFunc, ExpandAllGroups, CollapseAllGroups#9150ScarletKuro merged 7 commits intoMudBlazor:devfrom MihFig:fix/datagridgrouping
Conversation
…erver_data change)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #9150 +/- ##
==========================================
+ Coverage 89.82% 90.67% +0.84%
==========================================
Files 412 400 -12
Lines 11878 12510 +632
Branches 2364 2436 +72
==========================================
+ Hits 10670 11343 +673
+ Misses 681 624 -57
- Partials 527 543 +16 ☔ View full report in Codecov by Sentry. |
|
Hi. |
Add GroupItems calls to ExpandAllGroups(), CollapseAllGroups() and make them async
|
Thanks for the test. Now I'm concerned about the Is the |
In my opinion yes - GroupItems() calls StateHasChanged() and need to refresh view after click.
I am doing it right now. During test creation I noticed buttons ExpandAll/CollapseAll not working too in this scenario - and they do not working in pasted in issue snippet either - thats why I changed it |
ExpandAllGroups, CollapseAllGroups => ExpandAllGroupsAsync, CollapseAllGroupsAsync
In your opinion? I'd rather go with hard facts. Did you test without If I'm not mistaken |
That's correct. It should be be always on the UI thread when it comes from but in that case the await comp.InvokeAsync(() => comp.Instance.CollapseAllGroupsAsync());should be used. |
|
You're right @henon @ScarletKuro - I rolled back the incorrect changes |
Description
Fixes #9149
How Has This Been Tested?
Only manually inside my own project used MudBlazor
Type of Changes
Checklist
dev).