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

Drag and Drop from Tree View to Grid View

3 Answers 205 Views
GridView
This is a migrated thread and some comments may be shown as answers.
BECK
Top achievements
Rank 1
BECK asked on 29 Nov 2010, 10:04 PM
I want to be able to drag a node from a tree view and drop it into a grid view right above the row under the mouse. Basically the same way the row re-ordering is done in the grid view (same effect and all) but instead of the same grid view being the source, a tree view would be one. 

Thanks

EB

3 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 29 Nov 2010, 10:20 PM
Hello Beck,

You should first enable drag drop functionality from the TreeView, once you got that working you could just take a look at this code library project drag drop between grids in bound mode. which uses the Grid DragDropService to add items to the grids collection.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
francesco
Top achievements
Rank 2
answered on 09 Feb 2011, 04:43 PM
Hello Emanuel,
  i've downloaded the example in your post, but i can't perform a drag from a RadTreeView to a RadGridView, but only between rows and grid. Is there something i should know?

Thanks for your support
   Francesco
0
Svett
Telerik team
answered on 11 Feb 2011, 05:23 PM
Hi francesco,

Presently, the RadTreeView does not support this scenario out of the box. You should use the standard OLE drag and drop provided by Microsoft. You can read more about it in this MSDN article.

Greetings,
Svett
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
BECK
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
francesco
Top achievements
Rank 2
Svett
Telerik team
Share this question
or