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

Drag and Drop to grid

3 Answers 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
robert
Top achievements
Rank 1
robert asked on 25 Jul 2008, 11:49 PM
I notice that when using the Items Drag and Drop example on your web site, and experimenting with it in my own code, you must drop dragged rows on rows in the destination grid to trigger the postback.  If you drop on the header or an empty part of the grid body, nothing happens (and it's not because it is being cancelled by the client side OnRowDropping event handler). 

Can this behavior be modified to allow triggering a postback no matter where you drop on the destination grid? If there are no rows in the grid it makes the target area uncomfortably small.  If you don't need to know the location where the drop occurs, the requirement to drop on rows is too restrictive.

Regards,
Bob Reader

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 29 Jul 2008, 11:26 AM
Hi robert,

Thank you for contacting us.
You can find detailed information about RadGrid drag and drop functionality on this article.

Greetings,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
robert
Top achievements
Rank 1
answered on 29 Jul 2008, 02:00 PM
Thank you for the information on drag and drop.  Unfortunately, it did not answer my specific question.  Why is the drop postback only triggered when you drop directly on rows in another grid, and not when you drop on other parts of the grid, like the header or part of the body where rows don't exist?  Is it possible to get this to happen?

Regards,
Bob Reader
0
Nikolay Rusev
Telerik team
answered on 31 Jul 2008, 10:54 AM
Hi Robert,

Unfortunately dropping item on RadGrid's header is not supported scenario. Dropping an item is allowed only inside the body of the grid (within the rest of its data items).

Regarding the server side event RowDrop - it is fired every time when dragged items are dropped.

Best regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
robert
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
robert
Top achievements
Rank 1
Share this question
or