Drag/Drop from external source to TileView

3 posts, 1 answers
  1. Kevin
    Kevin avatar
    18 posts
    Member since:
    Sep 2010

    Posted 31 Jul 2013 Link to this post

    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. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 05 Aug 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Kevin
    Kevin avatar
    18 posts
    Member since:
    Sep 2010

    Posted 06 Aug 2013 Link to this post

    This is perfect Pavel!  Thank you very much!
Back to Top