This question is locked. New answers and comments are not allowed.
I have a UI where a ContentControl's content is swapped out as the user selects an area from a list of area elsewhere. For the user, it's not unlike a tab control switching tabs. The code behind it all is just lazily constructing and caching views to set as the ContentControl's Content property value when the user selects the corresponding area in the list.
Several of these views have RadGridViews in them. I can switch areas all day long with no problem. Except...
When the user goes from area A to area B, and then in area B popups up a dialog, which later pops up another dialog... when they go back to A (meaning the cached view with a previously working RadGridView), the grid's column widths are all messed up. See before.png and after.png for a small slice of the UI showing how the column sizes changed.
Part of the resized problem is that some columns are so wide, the whole grid now scrolls horizontally. But if you just nudge the scrollbar, the columns all re-size back to their normal sizes.
We had a very similar problem in RadTabControls as well, but that was fixed by adding IsContentPreserved="True" to the tabs. However, since this case is not a RadTabControl, that's not an option here.
Is this a bug in GridView? Am I abusing it by removing and re-adding cached views from the visual tree? Is there some event/method I can call to kick the RadGridView in the pants (which nudging the scrollbar seems to do)?
Several of these views have RadGridViews in them. I can switch areas all day long with no problem. Except...
When the user goes from area A to area B, and then in area B popups up a dialog, which later pops up another dialog... when they go back to A (meaning the cached view with a previously working RadGridView), the grid's column widths are all messed up. See before.png and after.png for a small slice of the UI showing how the column sizes changed.
Part of the resized problem is that some columns are so wide, the whole grid now scrolls horizontally. But if you just nudge the scrollbar, the columns all re-size back to their normal sizes.
We had a very similar problem in RadTabControls as well, but that was fixed by adding IsContentPreserved="True" to the tabs. However, since this case is not a RadTabControl, that's not an option here.
Is this a bug in GridView? Am I abusing it by removing and re-adding cached views from the visual tree? Is there some event/method I can call to kick the RadGridView in the pants (which nudging the scrollbar seems to do)?