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

Drag and drop between controls on separate tiles

3 Answers 104 Views
TileList
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 10 May 2016, 08:26 PM

I'm attempting to implement dragging and dropping between controls on two different tiles. It seems that I need to override the default tile reordering behavior, but only when the drag event source is not a Tile (such as when dragging a control inside a tile's contents to another tile). Specifically, I'm trying to drag from a RadGridView inside a Tile to another Tile.

Is this something that is feasible? 

 

I appreciate any advice,

Thanks

 

 

3 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 13 May 2016, 01:21 PM
Hello John,

This could be achieved by using our DragDropManager. You can check our online documentation articles

Regards,
Yoan
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Bedo
Top achievements
Rank 1
answered on 02 Jun 2016, 09:37 PM

Hi, I'm interested in the same functionality, where I'd like to drag from one arbitrary control into a tilelist, and have the tilelist's tiles re-order as I'm dragging in the new content, indicating where the drop would occur.

I looked through the documentation, but it's very limited and vague. Can you please provide a more concrete example specific to tilelist, or explain what needs to be done to do this to work?

Does a custom DragDropBehavior need to be written for this?
How will adding such behavior interact with the tilelist's own drag/drop functionality?

0
Yoan
Telerik team
answered on 07 Jun 2016, 03:14 PM
Hi ,

Generally, you need to set the AllowDrag and AllowDrop properties and handle some events of our DragDropManager. However, these properties are set to True for the RadTileList (since it is already draggable) and all you need is to handle the events which are illustrated in the article I sent in my previous reply. You can check this online demo which demonstrates drag-drop logic between our RadTreeVIew, and a ListBox.  The same example is available in your local copy of our WPF demos. You can check the attached where lies the logic for reordering the items of these controls.

Regards,
Yoan
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
TileList
Asked by
john
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Bedo
Top achievements
Rank 1
Share this question
or