Issues with dragging from a RadGridView

4 posts, 0 answers
  1. GEB
    GEB avatar
    228 posts
    Member since:
    Dec 2008

    Posted 08 Feb 2010 Link to this post

    I have implemented drag-and-drop from a RadGridView.  However, I'm running into a couple of problems that you might be able to help with.

    Firstly, I click on any row in the grid to highlight that row.  Next, I click in a column header of the same grid to reorder the columns.  An event is received in my drag event handler that indicates that the highlighted row is being dragged.  In effect, two operations then happen at once,  The column header gets dragged, AND my highlighted row gets dragged.  The behavior I'm looking for is to NOT drag the highlighted row when the column header is being dragged.  I would have hoped that the drag even would not have been generated in this instance.  Is there a way to check for this condition in my drag event handler?

    The second issue I'm experiencing is when I allow the user to select multiple rows.  The user only selects a single row and then drags that row.  If they drag that row over any other row in the grid, that row is subsequently selcted as well.  The behavior I would prefer is that when a row is being dragged (and multi-row select is enabled), the grid not select other rows because of the drag operation.

    I believe that these are counter behaviors to the grid that is built into Silverlight.  Of course, I prefer to use RadGridView.
  2. Tsvyatko
    Tsvyatko avatar
    832 posts

    Posted 10 Feb 2010 Link to this post

    Hi GEB,

    To resolve this issue we will need some additional information. Are you using RadDragAndDropManager to perform the drag and drop? Sample of its usage can be found here -

    Can  you also provide some code snippet showing the logic for the drag-n-drop.

    Kind regards,
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. DevCraft R3 2016 release webinar banner
  4. GPJ
    GPJ avatar
    31 posts
    Member since:
    Oct 2008

    Posted 25 Feb 2010 Link to this post

    We are having the same problem (for the second issue)..  We are dragging from one grid to another.

    If you select a record in grid A, then click it again and drag it to grid B it seems to be ok.  But if you select a record, then click and hold another record (to drag it) for the first time, when you move your mouse cursor across the rows down or up, it keeps selecting the records you mouse over.

  5. Milan
    Milan avatar
    1989 posts

    Posted 01 Mar 2010 Link to this post

    Hi GPJ,

    Currently this is the expected behavior but we will be introducing an option to turn-off the drag selection.  We will try to introduce the improvements right after our Q1 release. 

    Sorry for the inconvenience. 

    Kind regards,
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
Back to Top