It seems that the RadGridViews AlternationCount causes the columns to shrink. This only happens when the RadGridView is nested within a collapsed expander and a scrollviewer.
<
ScrollViewer
>
<
Expander
IsExpanded
=
"False"
>
<
telerik:RadGridView
AutoGenerateColumns
=
"False"
ColumnWidth
=
"*"
AlternationCount
=
"2"
ItemsSource
=
"{Binding Products}"
/>
</
telerik:RadGridView
>
</
Expander
>
</
ScrollViewer
>
When I remove the AlternationCount property or set IsEpanded property on the expander to true - it seems to solve the issue.
I am using the latest version of WPF assemblies .net 4.0.
Regards
Eugene
8 Answers, 1 is accepted
The issue you reported is caused by the ScrollViewer. May I ask you to share some more details about the scenario in your application? What are you trying to achieve by using the ScrollViewer? I would suggest you to remove it if possible in order the avoid the undesired behavior.
Looking forward to hearing from you.
Vera
the Telerik team

I simplified the xaml in order to demonstrate the issue that we experiencing. The Scrollviewer wraps mutlitple panels. Each panel contains an expander. Some of these expanders, as shown below, contain RadGridViews. Together the panels exceed the maximum screen size.
The ScollViewer is used by the user to scroll to the desired panel.
Hope this explains my scenario.
Regards
Eugene
We were able to fix this issue and the fix will be part of our next internal build - Monday. I've added 2000 Telerik points to your account.
Thank you very much for your feedback once again!
Vlad
the Telerik team

<
Grid
>
<
ScrollViewer
Margin
=
"10"
BorderThickness
=
"0"
MinWidth
=
"600"
VerticalAlignment
=
"Top"
>
<
telerik:RadExpander
Width
=
"500"
BorderBrush
=
"Black"
BorderThickness
=
"2"
Header
=
"Test Expander Header"
>
<
StackPanel
Name
=
"spTheTrouble"
>
<
telerik:RadGridView
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Header1"
MinWidth
=
"50"
/>
<
telerik:GridViewDataColumn
Header
=
"Header2"
MinWidth
=
"50"
/>
<
telerik:GridViewDataColumn
Header
=
"Header3"
MinWidth
=
"50"
/>
<
telerik:GridViewDataColumn
Header
=
"HeaderAll"
Width
=
"*"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
StackPanel
>
</
telerik:RadExpander
>
</
ScrollViewer
>
</
Grid
>

Have you tried our just released Q3 2012? Do you still have such problems?
Greetings,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

The issue is resolved and will be available in our internal build coming next week.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.