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

Drag/Drop from external source to TileView

2 Answers 112 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 31 Jul 2013, 08:51 PM
I have a need to support the dragging of images (.JPG files) from Windows Explorer and dropping them onto a TileView (creating a new tile with that image).  I've seen examples of dragging and dropping items originating in a Telerik control (ie, a TreeView or ListBox) and dropping them to a TileView, but nothing where the source originates outside the application containing the TileView control.  I've set the TileView's OnDrop property and have a OnDrop handler, but the handler never gets invoked when the image is dropped on the TileView.  Any help would be greatly appreciated.

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 05 Aug 2013, 09:44 AM
Hello Kevin,

Thank you for contacting us on that matter. I am happy to inform you that there are two ways to achieve your requirement:
  • to use the DragDropManager to handle the OnDrop event (note that you need to subscribe to the already handled events)
  • to set the native AllowDrop property of the RadTileView control to True and subscribe to the built-in Drop event.
For your convenience I created a sample project, demonstrating how you can fill the Items collection of the control.

Please take a look at the attached project and let me know if it works for you.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Kevin
Top achievements
Rank 1
answered on 06 Aug 2013, 02:20 PM
This is perfect Pavel!  Thank you very much!
Tags
TileView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or