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

GridView Mouse Events

3 Answers 125 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Surya
Top achievements
Rank 1
Surya asked on 23 Jul 2013, 02:35 PM
Hi,

I tried implementing File Drag and Drop operations from Windows Explorer to Gridview using Mouse Down and Mouse Up events but it did not
behave as expected.

Please suggest solutions for the following things regarding drag and drop operations of Grid view

1) How to perform drag and drop operations from Grid view to Windows Explorer similar to Drag Enter and Drag Drop events.
Is there any specific event to perform it.

2) How to get the current state of Mouse Buttons (Pressed or Released) when holding a button during drag operations in Mouse Down event

3) How to validate/ handle the Single Click and double click during drag operations.

4) How to terminate the DoDrag Event which is intialized by calling Gridview.DoDragDrop .

Thanks.

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 26 Jul 2013, 03:12 PM
Hello Surya,

Thank you for writing.

If you want to drag and drop files to grid view you should implement DragEnter and DragDrop events apart from AllowDrop. Here is a great article discussing the issues you are asking about: drag'n'drop files to a gridview

Hope that helps. Please let us know if we can be of further assistance.

Regards,
Paul
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Surya
Top achievements
Rank 1
answered on 29 Jul 2013, 12:21 PM
Hi Paul,

Thanks for your answer. Please suggest the solution to perform File drag and drop operations from Grid view to Windows Explorer .
0
Paul
Telerik team
answered on 01 Aug 2013, 01:57 PM
Hello Surya,

Thank you for writing back.

I am attaching a project with a drag and drop implementation from RadGridView to Windows Explorer. Feel free to check it out.

I hope it will help you get your project up and running. Please let us know if we can assist you further.

Regards,
Paul
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Surya
Top achievements
Rank 1
Answers by
Paul
Telerik team
Surya
Top achievements
Rank 1
Share this question
or