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

Drag drop operation between ListBox and TreeView - migration from RadDragAndDropManager

4 Answers 23 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Marcin asked on 05 Mar 2014, 08:41 PM
Hi,

I'm migrating our software from RadDragAndDropManager to DragDropManager.

I followed the tutorial described in: http://www.telerik.com/help/silverlight/radtreeview-how-to-implement-drag-and-drop-between-treeview-and-listbox.html.
I encounter a problem with migrating two features, that seems to be out-of-box in previous version:

1. Drop position indicator befor/after current item (I got only info in DragCue) - just like during D&D operation in RadTreeView.
2. Expanding nodes while keeping cursor above an item (I think, it can be implemented by adding some timers, and so on - but maybe there is trick to activate this feature).

Best regards
Marcin

4 Answers, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 10 Mar 2014, 04:51 PM
Hello Marcin,

I attached the SDK sample project described in the RadTreeView documentation. You can also download this example from the link at the bottom of the article. The features you described work fine in the sample project. But if you are having any issues could you please modify it and send it back to us ?

Please let us know if this helps.

Regards,
Boris Penev
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Marcin
Top achievements
Rank 1
answered on 10 Mar 2014, 07:43 PM
Hello Boris,

It just the article and example I used to migrate out controls. 

The features mention in points 1. and 2. are missing while dragging from ListBox and trying to drop on the Tree View (I wasn't clear enough in earlier post).

Is it possible to be done somehow 'out-of-box'. As we hadn't migrated our code for now, we are still using 2013Q1 Telerik controls. Maybe this is done in latest release? We will be ready for upgrade as soon as we rewrite all usage of RadDragAndDropManager.

Best regards
Marcin Danek
0
Accepted
Boris
Telerik team
answered on 13 Mar 2014, 06:09 PM
Hello Marcin,

The RadTreeView uses a TreeViewDragDropOptions object to wrap all drag-drop related data during a drag operation. This is why if you create such an element in the DragInitialize handler in the ListBox DragDropBehavior implementation, as soon as you drag a ListBoxItem over the RadTreeView, the TreeViewDragDropOptions will trigger the TreeView's auto-expand, auto-scroll-during-drag and drag-over-visualization logic.

I attached a sample solution demonstrating this approach. Please have a look at it and let us know if it helps.

Regards,
Boris Penev
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Marcin
Top achievements
Rank 1
answered on 19 Mar 2014, 10:32 AM
Yes - it works now!

Best regards!

Marcin Danek
Tags
DragAndDrop
Asked by
Marcin
Top achievements
Rank 1
Answers by
Boris
Telerik team
Marcin
Top achievements
Rank 1
Share this question
or