RadGridView inside RadTabControl loses vertical scroll

3 posts, 1 answers
  1. Gaetano Gliatta
    Gaetano Gliatta avatar
    7 posts
    Member since:
    Mar 2010

    Posted 12 Nov 2010 Link to this post

    Hi,
    I've e RadGridView inside e RadTabControl.

    RadGridView loses the vertical scrollbar when its content exceeds the vertical available space.

    If I set a fixed Height to RadTabControl the scrollbar appairs, but this isn't my goal.

    If I move RadGridView outside RadTabControl the scrollbar appairs.

    No controls have fixed Height in the page becouse I want that the page extends itself vertically for all space available.

    Any ideas? There is a bug or I'm missing something?

    Thank you in advance for your attention.

    Kind regards

    RP



  2. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 16 Nov 2010 Link to this post

    Hello Gaetano,

    I am not quite sure how you define your RadGridView inside RadTabControl, but I suppose that the issue came from the Grid layout container that is added by default to a RadTabItem. RadGridView placed in a Grid container with RowDefinition/ColumnDefinition's  Height/Width set to Auto will measure its children with infinity and the scrollbar will not appear.


    <UserControl
        x:Class="SilverlightApplication194.MainPage">
         
        <Grid x:Name="LayoutRoot"  Background="White" DataContext="{Binding Source={StaticResource SampleDataSource}}">
            <telerik:RadTabControl >
                <telerik:RadTabItem Header="RadTabItem">
                    <Grid Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition/>
                         </Grid.RowDefinitions>
                        <telerik:RadGridView Grid.Row="0" ItemsSource="{Binding Collection}"/>
                    </Grid>
                </telerik:RadTabItem>
            </telerik:RadTabControl>
             
        </Grid>
    </UserControl>

    You can read more about this topic here.
    Please try the markup above and let me know if this works for you.

    Regards,
    Vanya Pavlova
    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
  4. Gaetano Gliatta
    Gaetano Gliatta avatar
    7 posts
    Member since:
    Mar 2010

    Posted 16 Nov 2010 Link to this post

    Thank you so much, it runs!

    Row height must be 

    <RowDefinition Height="*"/>

    and not Auto.

    Kind regards

    RP
Back to Top