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

Hiarchy Scrollbars

6 Answers 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Richard Harrigan
Top achievements
Rank 1
Richard Harrigan asked on 22 Dec 2011, 05:09 AM
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

6 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 22 Dec 2011, 04:08 PM
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 >>

0
Richard Harrigan
Top achievements
Rank 1
answered on 22 Dec 2011, 07:08 PM
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
0
Vanya Pavlova
Telerik team
answered on 23 Dec 2011, 11:01 AM
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 >>

0
Richard Harrigan
Top achievements
Rank 1
answered on 23 Dec 2011, 06:35 PM
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
0
Vlad
Telerik team
answered on 27 Dec 2011, 08:57 AM
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 >>

0
Vit100
Top achievements
Rank 1
answered on 04 Jan 2012, 05:54 PM
What is "nested scroll-bars."?
Example pls
Tags
GridView
Asked by
Richard Harrigan
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Richard Harrigan
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Vlad
Telerik team
Vit100
Top achievements
Rank 1
Share this question
or