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

Drag and drop with radGrid

3 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stéphane
Top achievements
Rank 1
Stéphane asked on 31 Jan 2012, 03:46 AM
Hi,
How can I do a drag and drop from a cell in a radgrid to another cell of the same grid?
Thanks

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 31 Jan 2012, 05:01 AM
Hello Stephane,

Take a look at the following demo.
Grid / Items Drag-and-drop.
Also check the following forum thread which discussed similar scenario.
Drag and Drop among cells of grid

-Shinu.
0
Stéphane
Top achievements
Rank 1
answered on 31 Jan 2012, 04:08 PM
Hi Shinu,
This example show for an entire row. But how can I do that from a cell only to anothers cell.
By example: if I want to place the C beside the A in the empty cell of the grid.
| A |   | C |
Thanks
Stephane

0
Tsvetina
Telerik team
answered on 03 Feb 2012, 12:49 PM
Hi Stéphane,

As it is noted in the second link that Shinu posted, RadGrid does not support such functionality. It is against the control's design to utilize moving contents inside a single record, as each cell value is associated to a field in the datasource and if one is string and the other is int, for example, you will get an error once you try to exchange values.
If your binding utilizes such changes, you could consider implementing some custom scenario using RadListView:
Drag-and-drop


Kind regards,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Stéphane
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Stéphane
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or