Hello,
I am having trouble enabling drag/drop functionality in a RadTreeView when I set its ItemsSource to a ListCollectionView. Here is an example:
The items display fine, but when I drag and drop them nothing seems to happen. If I set the ItemsSource directly to the testCollection, it works just fine, but I need to use a ListCollectionView in my case in order to enable filtering. Is this a bug in the control, or am I doing something improperly? Thanks.
I am having trouble enabling drag/drop functionality in a RadTreeView when I set its ItemsSource to a ListCollectionView. Here is an example:
<Window x:Class="WpfApplication6.Window1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:Telerik="http://schemas.telerik.com/2008/xaml/presentation" |
SizeToContent="WidthAndHeight" |
Title="Window1"> |
<Telerik:RadTreeView x:Name="sourceTree" Height="300" Width="300" IsDragDropEnabled="True"/> |
</Window> |
public partial class Window1 : Window |
{ |
public Window1() |
{ |
InitializeComponent(); |
ObservableCollection<string> testCollection = new ObservableCollection<string>(); |
testCollection.Add("one"); |
testCollection.Add("two"); |
testCollection.Add("three"); |
ListCollectionView view = new ListCollectionView(testCollection); |
sourceTree.ItemsSource = view; |
} |
} |
The items display fine, but when I drag and drop them nothing seems to happen. If I set the ItemsSource directly to the testCollection, it works just fine, but I need to use a ListCollectionView in my case in order to enable filtering. Is this a bug in the control, or am I doing something improperly? Thanks.