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

How to implement drag and drop from RadGridView to RadTreeView

3 Answers 188 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vishal
Top achievements
Rank 1
Vishal asked on 01 Sep 2014, 05:30 AM
Hello,

I want to implement drag n drop functionality from RadGridView to RadTreeView. I dont want to use ViewModel.

in the RadGridView i have some data pulled from Database , i.e a list of songs with their tags as columns.

In the treeview i have made some categories of songs. I want to drag a song / or multiple songs from RadGridView and drop it on a category node of treeview. internally i will get a list of all selected rows of grid which or dragged on the Drop Event of treeview and update it to my collection and later in DB. I looked in your demos but all are using MVVM. I want a pure C# code , which would implement my task ASAP.

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 01 Sep 2014, 12:21 PM
Hi Vishal,

I would suggest that you take a look at the DragAndDrop Tree to Grid Drag example in our WPF Demos - it demonstrates how you could implement the drag and drop functionality between RadGridView and RadTreeView.

Hope this will be helpful.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Vishal
Top achievements
Rank 1
answered on 01 Sep 2014, 06:14 PM
I am sorry but all the samples use MVVM. i am not an MVVM expert. neither i am using MVVM in my project. I just want clean WPF /C# code for drag n drop without using View Models.

Please help me make this functionality as it is a critical part , and if i get to implement this, only then i will purchase you UI Suite.
Can you please post a demo in which we can have a a treeview with some categories and a datagrid with some data and we can drag row from DataGrid to treeview.
0
Yana
Telerik team
answered on 03 Sep 2014, 10:01 AM
Hi Vishal,

I've created a simpler example which demonstrates how to implement the drag and drop from RadGridView to RadTreeView using the DragDropManager events, please download the attachment and give it a try.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
General Discussions
Asked by
Vishal
Top achievements
Rank 1
Answers by
Yana
Telerik team
Vishal
Top achievements
Rank 1
Share this question
or