RadTabControl in RowDetailsTemplate causes scrollbar jumps in RadGridView

3 posts, 0 answers
  1. Jakub
    Jakub avatar
    2 posts
    Member since:
    Aug 2015

    Posted 12 Aug 2015 Link to this post

    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. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 17 Aug 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jakub
    Jakub avatar
    2 posts
    Member since:
    Aug 2015

    Posted 20 Aug 2015 in reply to Ivan Ivanov Link to this post

    Hi Ivan,

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

Back to Top