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

RadTreeView going crazy

17 Answers 296 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Lauren Nickerson
Top achievements
Rank 1
Lauren Nickerson asked on 07 Apr 2010, 10:55 PM
I'm not sure how to make this happen, but the treeview starts going up and down like crazy.


(Scroll to the right, the treeview is docked on the right side of the window)

Have you ever seen this before? How can we solve it?

Thanks!

17 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 12 Apr 2010, 02:47 PM
Hi Lauren Nickerson,

We have seen this once before, but unfortunately we weren't able to reproduce it on our side.

Therefore, we will highly appreciate any additional information that you can give us about your scenario and the steps that led to the described behavior.

Also, could you please open a support ticket and attach a sample project reproducing the issue. This way we will be better able to tackle the issue.

Thank you in advance.

All the best,
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
Lauren Nickerson
Top achievements
Rank 1
answered on 04 Oct 2010, 10:48 PM
Hello, I'm wondering if there's a property or a work around to avoid the RadTreeView trying to auto scroll it's horizontal scroll bar. May this would solve the problem, because we have the theory that the tree view is trying to show what's on the right edge, then it tries to show the left edge, so it just keeps going from left to right continuously.

Let me know if there's a way to turn that feature off.

EDIT:

This is the feature I'm talking about:

http://www.screencast.com/users/CarloToribio/folders/Jing/media/e4949171-6f54-4a3c-b138-2551bb58cd7d

How the tree moves to the right when I select the item with the long text.

Thank you.
0
Tina Stancheva
Telerik team
answered on 07 Oct 2010, 06:00 PM
Hi Lauren Nickerson,

You can set the RadTreeView ScrollViewer.HorizontalScrollBarVisibility property to "Disabled". Does that work for you?

Regards,
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
Lauren Nickerson
Top achievements
Rank 1
answered on 15 Oct 2010, 01:38 AM
Hi. Thanks for the suggestion, but it doesn't. We do need the horizontal scroll bar, because there are times when the treeview grows wider than its container. What we don't want is the scroll bar moving on its own when a user clicks on the treeview. But we need the scrollbar to be visible so the user can do it manually if needed.

Thanks.
0
Tina Stancheva
Telerik team
answered on 18 Oct 2010, 05:21 PM
Hi Lauren Nickerson,

In that case, can you try disabling the Horizontal/Vertical ScrollBarVisibility of the RadTreeView.ScrollViewer and wrapping the RadTreeView in a ScrollViewer control. This way you can workaround the behaviour of the default RadTreeView ScrollViewer:
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Width="200">
    <telerik:RadTreeView x:Name="radTreeView" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                    ScrollViewer.VerticalScrollBarVisibility="Disabled">
        <telerik:RadTreeView.ItemTemplate>
            <HierarchicalDataTemplate ItemsSource="{Binding Children}">
                <TextBlock Text="{Binding Header}" />
            </HierarchicalDataTemplate>
                </telerik:RadTreeView.ItemTemplate>
    </telerik:RadTreeView>
</ScrollViewer>

Give it a try and let us know if it works for you. Also, if you can isolate the issue in a sample project, we will highly appreciate it. This way we will be able to investigate the cause for this behaviour.

Regards,
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
Lauren Nickerson
Top achievements
Rank 1
answered on 18 Oct 2010, 10:05 PM
It works. Two really major backdrafts though:

1) The mouse wheel doesn't work for scrolling
2) (The really bad one) When using the arrow keys, the scroll viewer doesn't move

http://www.screencast.com/users/CarloToribio/folders/Jing/media/11093214-9b35-4612-a892-81362ac29857

Please let me know if that can be fixed. Thanks.
0
Tina Stancheva
Telerik team
answered on 21 Oct 2010, 01:24 PM
Hello Lauren Nickerson,

The RadTreeView control is designed to work with its default embedded ScrollViewer out-of-the-box, and implementing the scrolling logic to an outer ScrollViewer is a difficult task. Therefore, I wanted to ask you if you can check this issue in our PITS and tell me if this is the same issue that you are facing.

If it isn't, or if your scenario is more complicated, can you please elaborate on it. I am asking you for details, because it would be best if we can reproduce the issue so that we can fix it instead of looking for more complicated workarounds.

Thank you in advance.

Kind regards,
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
Lauren Nickerson
Top achievements
Rank 1
answered on 25 Oct 2010, 07:27 PM
It's not the same problem. Unfortunately I don't have any details for mine as we don't know how to reproduce it, we've just seen it on some sporadic occasions. Basically, the tree starts going left and right when the text in the RadTreeViewItems are too long, we assumed this is because of the horizontal auto-scroll feature, so we were wondering how difficult it was to turn that feature off and see if the problem stopped appearing. But it does look like it's not easy to do that. May I request that 'Turn auto-scroll off' feature for future releases?

Thanks.
0
Kiril Stanoev
Telerik team
answered on 27 Oct 2010, 09:08 AM
Hello Lauren,

Thank you for the feature request. I've added it in out public issue tracking system under the name "TreeView: Ability to turn auto-scroll on/off". The item will be available for tracking and voting tomorrow the latest. We will start working on it after our official 2010 Q3 release, which is scheduled for the middle of November. Let me know if I can be of further assistance.

Greetings,
Kiril Stanoev
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
Dinesh
Top achievements
Rank 1
answered on 29 Jan 2013, 06:08 AM
Hi Kril,

Is TreeView: Ability to turn auto-scroll on/off issue resolved ? Is this same for Silverlight ?

Please let me know as i was not able to track this issue in your PIT system.

Thanks,
Dinesh Patel
0
Tina Stancheva
Telerik team
answered on 31 Jan 2013, 01:33 PM
Hello Dinesh,

This feature was logged for both WPF and Silverlight and you can track its progress from here. Unfortunately at this point the demand for the feature isn't large and this is why we can't move it up in our to-do list.

But I hope this isn't a showstopper for you.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Christian
Top achievements
Rank 1
answered on 23 May 2013, 11:21 AM
Hi,
do you have any example how to do this with DragDropManager?

Here is the old way:
http://blogs.telerik.com/blogs/posts/10-11-25/how-to-implement-autoscroll-while-dragging-in-radtreeview.aspx

0
Tina Stancheva
Telerik team
answered on 24 May 2013, 08:40 AM
Hi Christian,

If you need to implement AutoScrolling in the RadTreeView control using DragDropManager, then I'm happy to tell you that you can do so out-of-the-box. During this release cycle we implemented the built-in RadTreeView DragDrop logic using the DragDropManager. This changes are available within our latest internal build but please note that they will be officially release with Q2 2013 release coming up in a few weeks.

In the meantime I attached a sample solution demonstrating how to take advantage of the new DragDrop logic of the RadTreeView.  It is important to note that it will only be triggered when you set the TreeViewSettings.DragDropExecutionMode attached property to New in the RadTreeView definition.

Regards,
Tina Stancheva
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Christian
Top achievements
Rank 1
answered on 27 May 2013, 06:34 AM
Thank you, but there is no solution with the current release 2013 Q1?
0
Tina Stancheva
Telerik team
answered on 29 May 2013, 09:09 AM
Hello Christian,

In the 2013 Q1 release, the RadTreeView DragDrop logic still uses the RadDragAndDropManager. And in case you need to use the DragDropManager with that release, you'll have to create custom drag/drop logic and your custom auto-scrolling behavior. Unfortunately we don't have any samples for such a behavior.

Therefore I'd highly recommend waiting for our next release that is just around the corner, as with it you'll be able to use the new RadTreeView DragDrop logic out-of-the-box.

Regards,
Tina Stancheva
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Rakesh
Top achievements
Rank 1
answered on 29 Aug 2014, 08:10 PM
Hi, We are using Telerik WPF version 2012.2.912.40 . we are facing similar issue with horizontal auto scrolling. Initial data load of the RadTreeView, goes crazy and occupies UI thread, nothing but freezes application. Do we have any solution to this issue other than enclosing in Scrollviewer.

Thanks
Rakesh
0
Petar Mladenov
Telerik team
answered on 01 Sep 2014, 08:23 AM
Hello Rakesh,

Since this is an old thread we encourage you to open a new support ticket with more information about your scenario. We also encourage you to upgrade to the latest telerik version if possible, this way you will take advantage from the latest features and bug fixes for our controls.

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
Lauren Nickerson
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Lauren Nickerson
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Dinesh
Top achievements
Rank 1
Christian
Top achievements
Rank 1
Rakesh
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or