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

autoscroll behavior when drag and dropping

1 Answer 61 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jonam
Top achievements
Rank 1
Jonam asked on 15 Mar 2012, 03:05 PM

Hello,

i have a problem with drag and dropping in a treeview. I am using 2012 Q1. When i drag an item to the bottom or top of the treeview i expect the treeview to scroll up or down. This doesn't happens. My code is.

public MainPage()
{
    InitializeComponent();
    var itemsSource = Enumerable.Range(1, 100).Select(i => "Item " + i).ToList();
    tree.ItemsSource = itemsSource;
}

and

<UserControl x:Class="RadDrop.MainPage"
        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <Grid x:Name="LayoutRoot">
        <telerik:RadTreeView x:Name="tree" IsDragDropEnabled="True">
              
        </telerik:RadTreeView>
  
    </Grid>
</UserControl>

how can i turn on this behavior.

kind regards,

Jonam

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 16 Mar 2012, 08:52 AM
Hello Jonam ,

 Unfortunately, in 2011 we introduced a bug in the RadTreeView and the autoscroll feature stopped working.
In order to workaround this, you need to implement certain behaviors described in this blog post.
Please excuse us for the inconvenience caused.

Regards,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
TreeView
Asked by
Jonam
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or