Hello,
I have a View which I want to split into 4 sub-parts, flexibly. To do this I tried to take advantage of the RadLayoutControl. In one of the 4 sub-, I place a RadGridView which binds to a collection giving it exactly 1000 rows. The performance with this configuration is terrible, and not usable.
If I comment out the usage of the RadLayoutControl and it's sub-elements, and just show the same GridView, the performance is fine.
I am aware of the performance restrictions on the RadGridView, please see:
https://docs.telerik.com/devtools/wpf/controls/radgridview/troubleshooting/performance
https://docs.telerik.com/devtools/wpf/controls/radgridview/performance/tips-tricks
which are somewhat redundant as they show the same information.
Most likely the "problem" is:
RadGridView is placed in a control that measures its children with infinity - such controls are:
ScrollViewer
StackPanel (when vertical it measures with infinite height and when horizontal - with infinite width)
Grid with RowDefinition Height="Auto" or ColumnDefinition Width="Auto".
I do not place the GridView in any Grid where Height="Auto" or ColumnDefinition Width="Auto".
However, looking at the visual trees in snoop, it is clear that "LayoutControlGroup", "LayoutControlExpanderGroup" etc. all add their own Grids and ScrollViewers.
How can I then put a GridView inside of a nested set of Layout Controls and get it to work normally?
For your information, my nested Layout Controls are very similar to those in the Demo Code Samples for "Layout Control", "First Look". Nothing special.
Thanks,
Mark