The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Whenever the user adds or removes a group, I need to retrieve the groups and their Records.
I have a handler attached to the GridGroupingControl.TableDescriptor.GroupedColumns.Changed event. In the handler, I get the groups/Records from GridGroupingControl.Table.TopLevelGroup.Groups. I then recursively iterate the Groups (and their sub-groups, etc..), and process their Records.
Unfortunately, during the GroupedColumns.Changed event the TopLevelGroup.Groups collection has not been updated to include the user's changes yet.
Is there anyway I can get the "up to date" groups/records while handling a GridGroupingControl.TableDescriptor.GroupedColumns.Changed event? Or is there another event I could use?
Currently, as a workaround, I do Thread.Sleep(100) in a background thread, and then invoke back into the UI thread. By then the TopLevelGroup collection is up to date. But this hack makes my stomach hurt :)