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

DragDrop Problem

4 Answers 81 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 24 Dec 2010, 09:50 AM
I use the TreeView control. And I want to drag some child node to other place. But I found some problem when I draged the [Football] node, the [Sport Categories] node was moved actually. How can I do that only drag and move the [Football] node? Thank you.

<
telerik:RadTreeView x:Name="radTreeView" IsDragDropEnabled="True" PreviewDragStarted="radTreeView_PreviewDragStarted">
   
<telerik:RadTreeViewItem Header="Sport Categories">
       
<telerik:RadTreeViewItem Header="Football">
           
<telerik:RadTreeViewItem Header="Futsal"/>
           
<telerik:RadTreeViewItem Header="Soccer"/>
       
</telerik:RadTreeViewItem>
       
<telerik:RadTreeViewItem Header="Tennis">
           
<telerik:RadTreeViewItem Header="Table Tennis"/>
       
</telerik:RadTreeViewItem>
       
<telerik:RadTreeViewItem Header="Cycling">
           
<telerik:RadTreeViewItem Header="Road Cycling"/>
           
<telerik:RadTreeViewItem Header="Indoor Cycling"/>
           
<telerik:RadTreeViewItem Header="Mountain Bike"/>
       
</telerik:RadTreeViewItem>
   
</telerik:RadTreeViewItem>
</
telerik:RadTreeView>

I track in PreviewDragStarted event, and view the e.DraggedItems paremeter, Only [Sport Categories] node in it.

4 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 25 Dec 2010, 08:56 AM
Who can help me? please
0
Petar Mladenov
Telerik team
answered on 28 Dec 2010, 05:36 PM
Hi David,

Could you please examine the attached project where a custom DragAndDrop logic is demonstrated. Basically, you can drag and drop from one tree to another, but you cannot drag and drop from one tree to itself. If the solution doesn`t satisfies you, we would highly appreciated if you send  us a sample demonstrating the issue you have come up with. This way we could investigate in depth and provide you with a better advice. Thank you in advance for your cooperation.

All the best,
Petar Mladenov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
David
Top achievements
Rank 1
answered on 31 Dec 2010, 09:38 AM
I use the patch(01001RC_Silverlight4_2010_3_1227_DEV_hotfix). The bug is not exist. I think that it's maybe a bug in old version. Thank you for your help.
0
Tina Stancheva
Telerik team
answered on 31 Dec 2010, 01:41 PM
Hi David,

Yes you are right, there was an issue introduced with the official release that is now fixed. Please accept our apology for the caused inconvenience. Let us know if we can further assist you.

Regards,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
TreeView
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Petar Mladenov
Telerik team
Tina Stancheva
Telerik team
Share this question
or