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

Issues with dragging from a RadGridView

3 Answers 28 Views
GridView
This is a migrated thread and some comments may be shown as answers.
GEB
Top achievements
Rank 1
GEB asked on 08 Feb 2010, 05:24 PM
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.

3 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 10 Feb 2010, 09:35 AM
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 - http://demos.telerik.com/silverlight/#DragAndDrop/TreeToGrid

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

Kind regards,
Tsvyatko
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.
0
GPJ
Top achievements
Rank 1
answered on 25 Feb 2010, 06:19 PM
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.

Greg
0
Milan
Telerik team
answered on 01 Mar 2010, 12:41 PM
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,
Milan
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.
Tags
GridView
Asked by
GEB
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
GPJ
Top achievements
Rank 1
Milan
Telerik team
Share this question
or