Hiarchy Scrollbars

7 posts, 0 answers
  1. Richard Harrigan
    Richard Harrigan avatar
    235 posts
    Member since:
    Nov 2009

    Posted 21 Dec 2011 Link to this post

    Hi

    See attached Grid.jpg.  The scrollbar for the third level in the hiarchy rendered correctly.  In this case the down arrow is not visible.  I can't us the scrollbar to show items that are not visible.  I can however place the cursor in the body of the grid and use the mouse wheel to scroll down.  Any suggestions on what can be done.

    Thanks
    Rich

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 22 Dec 2011 Link to this post

    Hello Rich,

     I have reviewed this case. As I can see from the screenshot, the third GridView is placed inside the Second GridView. The Second GridView has a scrollbar and its entire content is not visible (that is the scroll for), i.e. the Third GridView is not completely visible.
    In order to see the bottom of the inner expanded hierarchy item in the Third GridView, you will have to scroll the content of the Second GridView. 

    Greetings,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Richard Harrigan
    Richard Harrigan avatar
    235 posts
    Member since:
    Nov 2009

    Posted 22 Dec 2011 Link to this post

    Hi Didie.

    That's almost the way it is working but it seems to be counterintuitive.  The issue with using the second scrollbar is that you scroll down until the down arrow of the third scrollbar is visible and then you have to move to the third scrollbar to show the last rows of the third grid. That is you don't see the bottom items of the third grid with the second scrollbar as suggested in your reply.  Would you agree that if the third grids scrollbars up and down arrow were visible at the same time things would be much more intuitive?

     Is there any way I can change this behaviour, possibly templates?  This is very confusing to my users.

    Thanks
    Rich
  4. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 23 Dec 2011 Link to this post

    Hello,

     

    We have recently made performance improvements and by that reason the logic behind ChildDataControlsPresenter was changed. Instead the standard GridViewDataControl now you have a RadGridView with MaxHeight set to 300 pixels, please refer to the attached picture. You may remove this MaxHeight and the scrollable area will be streched. Will you please add the following implicit style to your project and let me know what happens: 

    <UserControl.Resources>
            <telerik:Office_BlackTheme x:Key="Theme"/>
            <ControlTemplate x:Key="ChildDataControlsPresenterTemplate" TargetType="telerik:ChildDataControlsPresenter">
                <ItemsControl x:Name="PART_ChildDataItemsControl" IsTabStop="{TemplateBinding IsTabStop}" ItemsSource="{Binding}">
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <telerik:RadGridView IsTabStop="{Binding IsTabStop, ElementName=PART_ChildDataItemsControl}" telerik:StyleManager.Theme="{StaticResource Theme}"/>
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>
                </ItemsControl>
            </ControlTemplate>
            <Style TargetType="telerik:ChildDataControlsPresenter">
                <Setter Property="Template" Value="{StaticResource ChildDataControlsPresenterTemplate}"/>
            </Style>
        </UserControl.Resources>
        <Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource SampleDataSource}}">
            <telerik:RadGridView  ItemsSource="{Binding Collection}">
                //................................
                </telerik:RadGridView>
          
        </Grid>



    All the best,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. Richard Harrigan
    Richard Harrigan avatar
    235 posts
    Member since:
    Nov 2009

    Posted 23 Dec 2011 Link to this post

    Hi,

    I tried it out and I liked the presentation much better but scrolling was very slow.  You mentioned that the ChildDataControlsPresenter was changed for performance reasons and it appears to be for good reason.  Is there any way to improve on the scrolling speed?

    Thanks
    Rich
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 27 Dec 2011 Link to this post

    Hi,

     RadGridView does not have hierarchical virtualization - the only way to have virtualization currently is with nested scroll-bars. We will do our best to introduce such virtualization/scrolling in some of our versions in 2012. 

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  7. Vit100
    Vit100 avatar
    66 posts
    Member since:
    Oct 2012

    Posted 04 Jan 2012 Link to this post

    What is "nested scroll-bars."?
    Example pls
Back to Top