Drag and drop between controls on separate tiles

4 posts, 0 answers
  1. john
    john avatar
    1 posts
    Member since:
    Apr 2016

    Posted 10 May Link to this post

    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

     

     

  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 13 May Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Bedo
    Bedo avatar
    2 posts
    Member since:
    May 2016

    Posted 02 Jun in reply to Yoan Link to this post

    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?

  5. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 07 Jun Link to this post

    Hi Bedo,

    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, RadGridView and a ListBox.  The same example is available in your local copy of our WPF demos. You can check the attached behaviors 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.
Back to Top