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

RadGridView inside RadTabControl loses vertical scroll

2 Answers 180 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gaetano Gliatta
Top achievements
Rank 2
Gaetano Gliatta asked on 12 Nov 2010, 10:01 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 16 Nov 2010, 04:41 PM
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
0
Gaetano Gliatta
Top achievements
Rank 2
answered on 16 Nov 2010, 05:27 PM
Thank you so much, it runs!

Row height must be 

<RowDefinition Height="*"/>

and not Auto.

Kind regards

RP
Tags
GridView
Asked by
Gaetano Gliatta
Top achievements
Rank 2
Answers by
Vanya Pavlova
Telerik team
Gaetano Gliatta
Top achievements
Rank 2
Share this question
or