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

Drag-Drop to fire button click

1 Answer 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 21 May 2015, 10:23 AM

Hi,

I have a radgridview which is populated by a LINQ query via Entity Framework by setting the datasource of the grid: 

EG: grd.DataSource = query.ToList();

On the form I have two grids with the classic 'Move' button between them. I also want to be able to drag from grid source into grid destination, but the twist is the grids are not the same. The button click works out the logic for the data move (and it works fine), so I want the destination grid to fire the button click when the item is dropped onto it.

Any ideas folks on how to allow dragging from the source grid and also on how to capture the 'drop' event in the destination grid?

Thanks all. 

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 May 2015, 01:39 PM
Hi Martin,

Thank you for writing.

We have a detailed example for this in our documentation. You will only need to change the logic in the PreviewDragDrop event handler: Drag and Drop.

Let me know if you have additional questions.
 
Regards,
Dimitar
Telerik
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
Tags
GridView
Asked by
Martin
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or