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

Drag and Drop from RadTreeView to RadDataGrid cell(s)

3 Answers 113 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Dustin
Top achievements
Rank 1
Dustin asked on 24 Jan 2018, 03:57 PM

Hello,

I am new to both XAML and Telerik. I am trying to implement some functionality to an existing application that will allow me to drag and drop a tree node item to a data grid. I have been looking at the example here (https://github.com/telerik/xaml-sdk/tree/master/TreeView/DragDropTreeViewToControls) and it seems very similar to what I need except a data grid instead of a list box. It should behave in the following way:

1) Allow drag and drop of tree node items ONLY to the left column cell(s) of an adjacent data grid (the other column will be prepopulated with data)

2) DISABLE drap and drop (and reorder, etc) within the RadTreeView itself.

 

If possible, please attach an example solution in a zip file.

Thank you in advance.

3 Answers, 1 is accepted

Sort by
0
Dustin
Top achievements
Rank 1
answered on 24 Jan 2018, 06:44 PM
I also found the demo depicting this behavior but I'd like to download a copy of the full solution so I can manipulate/test it locally.
0
Dinko | Tech Support Engineer
Telerik team
answered on 29 Jan 2018, 01:30 PM
Hi Dustin,

There is Silverlight online example demo (the code is shared with WPF) which demonstrates how you can drag-drop from RadTreeView to other controls ( like RadGridView). For your convenience, I have isolated the demo in a standalone project. You can additionally modify the approach so it fits in your main application.

Keep in mind that in the attached project I am referencing NoXAML binaries with a Windows8 theme.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Bardon
Top achievements
Rank 1
answered on 14 Feb 2018, 12:17 PM
Samsung Galaxy Tab S3 is the tablet that will help you achieve the goal https://www.findpare.com/tablet/samsung-galaxy-tab-s3-4g
Tags
DragAndDrop
Asked by
Dustin
Top achievements
Rank 1
Answers by
Dustin
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Bardon
Top achievements
Rank 1
Share this question
or