How to know if a tile has been drag-dropped ?

2 posts, 0 answers
  1. Mohsen
    Mohsen avatar
    3 posts
    Member since:
    Feb 2015

    Posted 13 Oct 2015 Link to this post

    I have two groups in my radPanorama which both of them have about ten radTileElement.

    When I drag one radTileElement in another position inside it's group then no event is fired, even if I drop it into another group no event is fired.


    How to know if radTileElement is in drag state and how to know where and when it's dropped ?

  2. Hristo
    Hristo avatar
    1522 posts

    Posted 13 Oct 2015 Link to this post

    Hi Mohsen,

    Thank you for writing.

    You can subscribe the DragDropService object of your RadPanorama instance to the PreviewDropTarget and PreviewDragOver events. In the event handlers, you are going to receive the drag instance and hit target objects. Based on some condition you can cancel the operation if you need to:
    public Form1()
        this.radPanorama1.PanoramaElement.DragDropService.PreviewDropTarget += DragDropService_PreviewDropTarget;
        this.radPanorama1.PanoramaElement.DragDropService.PreviewDragOver += DragDropService_PreviewDragOver;
    private void DragDropService_PreviewDropTarget(object sender, Telerik.WinControls.PreviewDropTargetEventArgs e)
    private void DragDropService_PreviewDragOver(object sender, Telerik.WinControls.RadDragOverEventArgs e)
        e.CanDrop = false;

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Hristo Merdjanov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top