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

GridView - CommandButton Move to Another Grid

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 25 Nov 2013, 04:51 PM
I wrote an application for a client earlier this year that enables drag and drop functionality between two grids (assigned measures and available measures).  The drag and drop works for most of their associates but for a few, it's not functional and they would like me to create a secondary way for them to select and move measures.

They asked for a single button that would allow them to select one or more rows in the available grid, click the button, and move selected rows to the assigned grid, but I thought in my research earlier this year that I found that wasn't possible.  Is it?  Or is it possible to create a command column in each grid with, for example, an arrow pointing to the other grid that when clicked would move the row?

Looking for a push in the right direction on this and examples would be greatly appreciated.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 28 Nov 2013, 07:12 PM
Hi Craig,

You can achieve the desired functionality by defining a GridDragDropColumn in your GridTableView's Columns collection. This will make your grid items draggable only when grabbed by the drag handle in the GridDragDropColumn. You can also select multiple items in the grid and drag them at once using dragdrop column. For a live demo, please refer to the RadGrid Items Drag-and-Drop QSF example

Give it a try and let me know if it works for you or you need additional assistance.

Regards,
Pavlina
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Craig
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or