Drag-Drop to fire button click

2 posts, 0 answers
  1. Martin
    Martin avatar
    35 posts
    Member since:
    Jun 2014

    Posted 21 May 2015 Link to this post


    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. 



  2. Dimitar
    Dimitar avatar
    1335 posts

    Posted 21 May 2015 Link to this post

    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.
    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
  3. DevCraft banner
Back to Top