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

RadTabControl in RowDetailsTemplate causes scrollbar jumps in RadGridView

2 Answers 148 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jakub
Top achievements
Rank 1
Jakub asked on 12 Aug 2015, 01:07 PM

Hi,

I have RadGridView with defined RowDetailsTemplate as below:

<telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>  
                    <telerik:RadTabControl>
                        <telerik:RadTabItem Header="Tab1">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="100" />
                                    <RowDefinition Height="50" />
                                </Grid.RowDefinitions>
 
                                <TextBlock Grid.Row="0" Text="TestVar1" />
                                <TextBlock Grid.Row="1" Text="TestVar2" />
                            </Grid>
                        </telerik:RadTabItem>
                    </telerik:RadTabControl>
                     
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>

When I expand row details, scroll down until details are not visibile and then go back to see again row details - a scrollbar jumps in strange way just before details shows. You can easy reproduce this behavior because there is no binding or anything. I found that when i comments out RadTabControl from details template as below:

<telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>  
                    <!--<telerik:RadTabControl>
                        <telerik:RadTabItem Header="Tab1">-->
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="100" />
                                    <RowDefinition Height="50" />
                                </Grid.RowDefinitions>
 
                                <TextBlock Grid.Row="0" Text="TestVar1" />
                                <TextBlock Grid.Row="1" Text="TestVar2" />
                            </Grid>
                        <!--</telerik:RadTabItem>
                    </telerik:RadTabControl>-->
                     
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>

there is no problem with jumping scroll. Can you help me guys?

Thanks

2 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 17 Aug 2015, 01:09 PM
Hi Jakub,

Can you please confirm whether you refer to the befavior when the scrollbar gets bigger after scrolling the RowDetails out of the viewport and then it returns to its initial size when details are brought back. Actually, this is the expected behavior, as the row with the open details gets reused by the UI virtualziation, with smaller size, which results in smaller scroll extent.. This should be reproducible regardless of the presence of tab control. 

Regards,
Ivan Ivanov
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Jakub
Top achievements
Rank 1
answered on 20 Aug 2015, 10:34 AM

Hi Ivan,

I set property Height to fixed value (for example 200) in RadTabControl and problem dissapears.

Tags
GridView
Asked by
Jakub
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Jakub
Top achievements
Rank 1
Share this question
or