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

4 posts, 0 answers
  1. Scott
    Scott avatar
    7 posts
    Member since:
    Oct 2015

    Posted 08 Oct 2015 Link to this post

    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.

     

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 12 Oct 2015 Link to this post

    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
  3. Scott
    Scott avatar
    7 posts
    Member since:
    Oct 2015

    Posted 12 Oct 2015 in reply to Pavlina Link to this post

    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.
  4. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 13 Oct 2015 Link to this post

    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
Back to Top