Event fired after RadTileElement Drag Drop

3 posts, 1 answers
  1. sendy
    sendy avatar
    2 posts
    Member since:
    Nov 2008

    Posted 21 Nov 2012 Link to this post

    Hi,
    I'm trying to save last position of the tile element after I do drag and drop, but I cannot seems to find what event fired after I drop the RadTileElement in new position. I have tried using the mouseUp event, but it seems the MouseUp event doesn't fired when you do a drag drop.
    Any suggestions what event fired after a drag drop in RadTileElement

    Thanks,
    Sendy
  2. Answer
    Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 22 Nov 2012 Link to this post

    Hello sendy,

    You can use the events of the DragDropService of RadPanorama. Here is how you can check a tile after it has been dropped:
    public Form1()
    {
        InitializeComponent();
        this.radPanorama1.PanoramaElement.DragDropService.Stopping += new EventHandler<Telerik.WinControls.RadServiceStoppingEventArgs>(DragDropService_Stopping);
    }
     
    void DragDropService_Stopping(object sender, Telerik.WinControls.RadServiceStoppingEventArgs e)
    {
        if (e.Commit)
        {
            RadTileElement tile = this.radPanorama1.PanoramaElement.DragDropService.Context as RadTileElement;
        }
    }

    I hope you will find this useful.

    Kind regards,
    Ivan Todorov
    the Telerik team
    Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. sendy
    sendy avatar
    2 posts
    Member since:
    Nov 2008

    Posted 23 Nov 2012 Link to this post

    Hi Ivan,
    That helped a lot, but for my specific need, that is saving the last position of tile element after a drag and drop operation, i'm using DragDropService.Stopped event.

    thanks for pointing the way ^^
    Sendy

Back to Top