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

Determine target row on drag and drop

1 Answer 90 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Russell Mason
Top achievements
Rank 1
Russell Mason asked on 28 May 2010, 02:49 PM
Hi

I am trying to determine the target row under the mouse on a drag and drop operation between 2 grids. In previous posts it implies that

GridViewRowItem rowItem = e.Options.Destination as GridViewRowItem;

should work. However, I seem to always get the grid as the destination and never a row. I feel I am missing something here.

Thanks
Russell Mason

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 31 May 2010, 09:06 AM
Hello Russell Mason,

You can get the row by using one of the following options:

 - Set enable allow drop on each row individually (using RowLoaded event) rather then seting it to the whole radgrid.

 - use the following code:
var row = e.GetElement<GridViewRow>(e.Options.CurrentDragPoint);


If you have any other questions or issues do not hesitate to contact us.


Kind regards,
Tsvyatko
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Russell Mason
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or