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

Drag from Grid to TreeView

3 Answers 67 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 03 Jun 2011, 11:29 AM
System Specifications:
   - RadControls for WPF Q3 2010 SP1
   - Windows XP SP3
   - VS2010 .NET 4.0
   - C#

The DragAndDrop TreeToGrid example in the WPF Demos shows dragging from a Grid to TreeView. I have implemented a WPF application in a TileView that contains several tiles with TreeViews and GridViews in separate tiles. Drag and Drop from a TreeView to GridView works however drag and drop from the GridView to TreeView does not. Is this functionality supported in RadControls for WPF Q3 2010 SP1? The DragAndDrop TreeToGrid example in the WPF Demos shows example code but not XAML. Is the TreeToGrid XAML viewable?

Thanks,
Mike

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 03 Jun 2011, 12:03 PM
Hello Mike,

Please take another look at the example you mentioned. As you would notice, only the AllowDrag property is set for the RadGridView. You may try to set the AllowDrop property to verify whether you get the same behavior. Let me know how it goes and if this resolves the issue.
 

Kind regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Scott
Top achievements
Rank 1
answered on 03 Jun 2011, 10:26 PM
Hi Maya,

I would like to do exactly what is being done in the example DragAndDrop --> Tree to Grid Drag.

When I try to view the code, the file Example.xaml.cs is available, but there is no Example.xaml file to go with it.  Could you please post a link to the Example.xaml file that makes the application work?  Most of the examples include an Example.xaml file and they are very helpful.

Best regards,
Scott
0
Maya
Telerik team
answered on 06 Jun 2011, 08:27 AM
Hello Scott,

Indeed, the xaml file is not visible for that particular example. We will try to fix that. In the meantime, I may suggest you to take a look at the equivalent code for Silverlight or the online documentation that provides the same case. Yet another possible approach would be to use your own local copy of the examples and find the one mentioned here.
I hope that helps.

All the best,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DragAndDrop
Asked by
Mike
Top achievements
Rank 1
Answers by
Maya
Telerik team
Scott
Top achievements
Rank 1
Share this question
or