Posted 26 November 2019, 11:19 pm EST
When refreshing the content of a grouped Flexgrid we would like to preserve the current expand/collapse state of each group row. The grid component seems to reset all groups to being expanded regardless of their previous state.
We’ve tried refreshing the grid data at various levels, either by updating the content of the underlying ObservableCollection or by replacing the ItemsSource entirely. No matter what we do, the grid always initializes each group row with IsCollapsed = false.
We therefore now save the IsCollapsed state of each group row before refreshing the grid and then re-apply it again afterwards. This still doesn’t solve the problem, because the grid is now shortly being rendered with each group row expanded, before we get a chance to apply the correct state, resulting in annoying expand/collapse flickering.
Is there any way to control the creation of the internal GroupRow instances used by the grid, so that we can apply the correct initial IsCollapsed state when the group row is being created?