RadTreeView jumps to top when resized

7 posts, 0 answers
  1. Melanie
    Melanie avatar
    3 posts
    Member since:
    Jul 2010

    Posted 21 Jun 2011 Link to this post

    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.
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 24 Jun 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Melanie
    Melanie avatar
    3 posts
    Member since:
    Jul 2010

    Posted 24 Jun 2011 Link to this post

    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.
  5. Melanie
    Melanie avatar
    3 posts
    Member since:
    Jul 2010

    Posted 24 Jun 2011 Link to this post

    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.
  6. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 24 Jun 2011 Link to this post

    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
  7. Matthew
    Matthew avatar
    1 posts
    Member since:
    Nov 2013

    Posted 29 Sep 2014 in reply to Tina Stancheva Link to this post

    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
  8. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 30 Sep 2014 Link to this post

    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.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready