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

DragDrop -- Drop on grid, but not on or below items

3 Answers 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 08 Oct 2015, 03:33 PM

Hi, 

 I would like to be able to implement drag and drop functionality into my grid but I need to be able to drop items anywhere on the grid, not just above/on/below current items in the grid.

 My grid

 The RowDrop event only seems to fire if you drop the item around the existing  items, and not in empty space on the grid.

 

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 12 Oct 2015, 04:14 PM
Hi,

Could you specify where is this empty space? As you can see from our online example you can drop the item in grid without data or drop it over other html element on the page without problems:
http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/rows/drag-and-drop/defaultcs.aspx

Regards,
Pavlina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Scott
Top achievements
Rank 1
answered on 12 Oct 2015, 05:10 PM
In the example, the grid's height is defined by the amount of elements. So when you drag 3 rows into it, the grid will be 3 rows high. My grid has a static height assigned to it. As you can see in the picture I attached in the original post, The only row on the right grid is "No records to display." When I drop a row from the left grid above/on/below that record, everything's fine. But the event RowDrop does not fire if I drop the row in empty space of the grid.
0
Pavlina
Telerik team
answered on 13 Oct 2015, 12:42 PM
Hi,

It does not matter if the grid has fixed height or not the target element on which the dragged grid record is dropped is still the same. I suggest you go through the article below for more information how this functionality works: http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/drag-and-drop-of-grid-items

Regards,
Pavlina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Scott
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Scott
Top achievements
Rank 1
Share this question
or