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

Event fired after RadTileElement Drag Drop

2 Answers 77 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
sendy
Top achievements
Rank 1
sendy asked on 21 Nov 2012, 09:34 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Todorov
Telerik team
answered on 22 Nov 2012, 04:54 PM
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.
0
sendy
Top achievements
Rank 1
answered on 23 Nov 2012, 08:51 AM
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

Tags
Panorama
Asked by
sendy
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
sendy
Top achievements
Rank 1
Share this question
or