Is RadGridView incompatible with StackPanel?

2 posts, 1 answers
  1. Laurian Angelescu
    Laurian Angelescu avatar
    10 posts
    Member since:
    Apr 2010

    Posted 03 May 2010 Link to this post


     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?

  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 04 May 2010 Link to this post

    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.
  3. DevCraft banner
Back to Top