This is a migrated thread and some comments may be shown as answers.

Is RadGridView incompatible with StackPanel?

1 Answer 66 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Laurian Angelescu
Top achievements
Rank 1
Laurian Angelescu asked on 03 May 2010, 10:09 PM

 When I tried to add the RadGridView control inside a grid control hosted by a stack panel,  the vertical scroll bar disappeared.

<StackPanel> 
    <Grid> 
       <RadGridView /> 
    </Grid> 
</StackPanel> 

If I remove the stack panel the problem disappears. Will this behavior always occur whenever RadGridView has a StackPanel somewhere higher in the hierarchy?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 04 May 2010, 06:34 AM
Hi,

This is normal behavior since the grid will be measured with infinity height. You will get exactly the same with standard Silverlight DataGrid. Items controls (and similar) inside StackPanel will cause serious performance problems due to the missing virtualization  - measure with infinity height will force the control to create all UI elements at once!

Best wishes,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Laurian Angelescu
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or