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

RadTreeView jumps to top when resized

6 Answers 237 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Melanie
Top achievements
Rank 1
Melanie asked on 21 Jun 2011, 10:17 AM
Hello @all,

our problem is the RadTreeView always jumping to the top when wrapped like in the xaml below. It took a long time to find out, but in this way I was able to reproduce it. We disabled the ScrollViewer of the RadPanelBar so we can scroll to certain items in the TreeView in the original context.

Expand the RadPanelBarItem, scroll down, select an item there. Move the GridSplitter or just resize the window and the RadTreeView's ScrollViewer jumps back to the top.
Change the RadTreeView and its items to the standard WPF TreeView and items and it stays scrolled where it is. Unfortunately we would be missing certain features of the RadTreeView we would like to use.

<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <Controls:RadPanelBar ScrollViewer.HorizontalScrollBarVisibility="Disabled" 
                                      ScrollViewer.VerticalScrollBarVisibility="Disabled">
        <Controls:RadPanelBarItem>
            <Controls:RadTreeView Grid.Column="0" 
                                  HorizontalAlignment="Stretch"
                                  Animation:AnimationManager.IsAnimationEnabled="False">
                <Controls:RadTreeViewItem Header="1">
                    <Controls:RadTreeViewItem Header="2" />
                    <Controls:RadTreeViewItem Header="2" />
                     <!-- Insert items until the vertical scroll bar can scroll down -->
                </Controls:RadTreeViewItem>
            </Controls:RadTreeView>
        </Controls:RadPanelBarItem>
    </Controls:RadPanelBar>
    <GridSplitter Grid.Column="0" Width="3" HorizontalAlignment="Right" />
    <Button Grid.Column="1">Test</Button>
</Grid>


Any ideas how we could fix this?

Kind regards,
M. Lohmann.

6 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 24 Jun 2011, 01:42 PM
Hi Melanie,

Thank you for your detailed report. We reproduced the issue locally and I logged it as a bug in our PITS, where you can track its progress. I updated your Telerik account accordingly.

I also attached a sample project with a possible workaround of the issue that you can use until we can implement a fix. Also we will need more time to investigate the cause for the issue and find a fix. This is why I wanted to ask you how critical is this issue for your development and also whether you can use the suggested workaround in the meantime.

Greetings,
Tina Stancheva
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
Melanie
Top achievements
Rank 1
answered on 24 Jun 2011, 02:16 PM
Hi Tina,

thank your for the workaround. In the example all works fine.

However I still have a strange jumping to the top of my tree in our application when scrolling back up. At about in the middle of the scrolling area it jumps to the top. But this does not show in the example, so I still have to investigate to give you a working example.

Hopefully it will get away with your official fix as well , but if I find a way to reproduce it for you meanwhile, I will provide an example.

Kind regards,
Melanie Lohmann.
0
Melanie
Top achievements
Rank 1
answered on 24 Jun 2011, 02:56 PM
Hi again,

so far I can tell you, the other issue is about virtualization, so I will rather make a new entry, when I have something to reproduce it.

Kind regards,
Melanie Lohmann.
0
Tina Stancheva
Telerik team
answered on 24 Jun 2011, 06:24 PM
Hello Melanie,

Thank you Melanie for getting back to us. Please keep us posted and let us know if you managed to reproduce the issue in an isolated sample, so that we can investigate it on our side as well.

Greetings,
Tina Stancheva
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
Matthew
Top achievements
Rank 1
answered on 29 Sep 2014, 07:39 PM
Hello,
As of build 2014.2.729.45 this bug still exists.  When my RadTreeListView is in a grid Column with Width=Auto the tree will scroll to the top when the window is resized.  Also I have seen the RadTreeListView scroll to the top when loading events fire. (not initial binding loading events but virtual loading events).  The scroll to top issue can occur when the user is interacting with controls away from the RadTreeListView.  When I make the column a fixed width the jumping goes away.  Is there any plan to fix this? 
Thanks,
Matt
0
Petar Mladenov
Telerik team
answered on 30 Sep 2014, 06:36 AM
Hi Matthew,

This is a RadTreeView forum thread. Could you please confirm you experience issue with RadTreeListView but not RadTreeView ? If the issue is reproducible with RadTreeListView, is it possible for you to send us a support ticket with more details about your scenario. Any XAML / isolated sample will be highly appreciated. Thank you in advance for your cooperation.

Regards,
Petar Mladenov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
TreeView
Asked by
Melanie
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Melanie
Top achievements
Rank 1
Matthew
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or