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

Drag / Drop RadGrid items across frames?

5 Answers 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sara
Top achievements
Rank 1
Sara asked on 11 May 2012, 10:21 PM
I have a frameset page containing 2 frames. Within each frame is a page containing a RadGrid. Is there a way to drag / drop items from one grid to another ACROSS frames? I can already drag / drop within a page between 2 grids without any issues. But I need to be able to do it across the frames. Any help is appreciated.

Sara

5 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 15 May 2012, 06:07 PM
Sara:

Unfortunately drag and drop functionality is not supported between controls located in separate iframes (or frames).

Hope this saves you some time!
0
Sara
Top achievements
Rank 1
answered on 15 May 2012, 09:35 PM
Thanks for the response. However, I was able to get this working by inserting a draggable div into a column in the grids. There's only one problem. The drag / drop works great if the grid's AllowMultiRowSelection is set to false. If multiple row selection is enabled on the grid then the drag / drop no longer works. The drag start event kicks off but then nothing else happens (dragover, dragenter, drop). I am thinking that it has something to do with the multiple row selection capturing the mousedown event? Any ideas?

0
Richard
Top achievements
Rank 1
answered on 15 May 2012, 10:22 PM
Sara,

That's a very impressive solution!

Perhaps the reason that you're having issues with drag and drop events when AllowMultiRowSelection is set to true is due to the fact that, with this setting, one of the ways to select multiple rows is by dragging across them, as discussed in the Selecting Multiple Rows (Client-side) documenation page and demonstrated in this online demo: Grid/Client-Side Row Selection.

Hope this helps!
0
Sara
Top achievements
Rank 1
answered on 15 May 2012, 10:30 PM
You are correct. When I set the ClientSettings EnableDragToSelectRows="false" then the multiple row selection works just fine. So I am dragging / dropping across frames from a tree or grid to another tree or grid. Small victories.
0
Mark Sandford
Top achievements
Rank 1
answered on 12 Jan 2013, 03:33 AM
Hi Sara,

Would you be able to share your code for how you were able to achieve this?

Thanks in advance.
Tags
Grid
Asked by
Sara
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Sara
Top achievements
Rank 1
Mark Sandford
Top achievements
Rank 1
Share this question
or