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

Drag and Drop between two different View with MVVM

7 Answers 302 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 26 Nov 2010, 12:31 PM
Hi

I have a little application, than this:
http://msdn.microsoft.com/en-us/magazine/dd419663.aspx

I make the acquaintance of the Drag and Drop now, and I would like to ask it, that theoretically possible the Drag and Drop between two different View, or i can use it only one View than in these examples:

http://www.telerik.com/help/wpf/raddraganddrop-between-treeview-gridview.html


Thanks.

7 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 26 Nov 2010, 01:25 PM
Hello Richard,

May you provide us with a bit more information about the exact behavior you want to accomplish ? What are the two views you want to drag and drop from and to ?
Furthermore, you may take a look at our online documentation for further reference on a couple of sample scenarios when using the Drag & Drop Framework. However, this is not the full list of the achievable scenarios.

Regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Richard
Top achievements
Rank 1
answered on 26 Nov 2010, 02:09 PM
Sorry, i don't read enough about this control, it's my fault. The problem solved.

thx a lot
0
Tuan
Top achievements
Rank 1
answered on 07 Nov 2011, 09:50 AM
Hi,

I have a same problem with drag and drop between to different View using MVVM. Maybe you could help me with it?

I have a MainPage.xaml contains two Views: View1 and View2

View1:
        <RadTreeView Name=View1

         IsDragDropEnabled

 

 

="True"

 

 

 

         DragDrop:RadDragAndDropManager.AllowDrop="False"

 

 

 

         DragDrop:RadDragAndDropManager.AllowDrag="True" />

 


View2:  
      <RadTreeView Name=View2

         IsDragDropEnabled

 

 

="True"

 

 

 

         DragDrop:RadDragAndDropManager.AllowDrop="True"

 

 

 

         DragDrop:RadDragAndDropManager.AllowDrag="False" />

 


I am using MVVM with ViewModel: ViewModel_View1 and ViewModel_View2

Now I want to using Drag and Drop to drag from View1 and drop into View2. Could you please show me how to do it?
                 

0
Dimitrina
Telerik team
answered on 08 Nov 2011, 09:46 AM
Hello Tuan,

 You could follow the approach in this online example where you can see drag drop between two RadTreeViews (and other controls as well).

Best wishes,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Tuan
Top achievements
Rank 1
answered on 15 Nov 2011, 10:11 AM
Thank you Didie,

Now I have another question I would like to ask you:
How can I disable tooltip to the target. When I drag an Item to another Item example from K tp P, then P is coming up in the tooltip. How can I disable this one? Thank you very much

Regards

Tuan
  
0
Dimitrina
Telerik team
answered on 17 Nov 2011, 10:02 AM
Hello Tuan,

You could change the DragTooltipVisibility of the TreeViewDragCue to be collapsed.

cue.DragTooltipVisibility = System.Windows.Visibility.Collapsed;

Please let me know if this is what are you looking for?

Regards,

Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Tuan
Top achievements
Rank 1
answered on 18 Nov 2011, 09:54 AM
I try DragTooltipContent = null; DragTooltipContentTemplate = null; And it's working. Thanks for youe help.
Tags
DragAndDrop
Asked by
Richard
Top achievements
Rank 1
Answers by
Maya
Telerik team
Richard
Top achievements
Rank 1
Tuan
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or