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

Dragging a unselected row is selecting all the rows which are mouse hovered.

2 Answers 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rakesh
Top achievements
Rank 1
Rakesh asked on 19 Jul 2013, 12:19 AM
Hi
I have a Radgrid and I have drag and drop enabled for this grid.
Whenever I try to drag a nonselected row and drop then all the other rows which are in between the dragged point and dropped point are getting selected. But I want just that one particular row  to be dragged.Did any one see this issue. I attached a image how it is being done.
Any help is much appreciated. These are the events I see.

Telerik.windows.controls.gridview.selection.selectiondrag.tryselectrowundermouse(bool scrolladjusted)
Telerik.windows.controls.gridview.selection.selectiondrag.tryselectelementundermouse(bool scrolladjusted)

I am handling these events
 DragDropManager.AddDragInitializeHandler(this.AssociatedObject, OnDragInitialize);
            DragDropManager.AddGiveFeedbackHandler(this.AssociatedObject, OnGiveFeedback);
            DragDropManager.AddDropHandler(this.AssociatedObject, OnDrop);
            DragDropManager.AddDragDropCompletedHandler(this.AssociatedObject, OnDragDropCompleted);
            DragDropManager.AddDragOverHandler(this.AssociatedObject, OnDragOver);

In the attached image I tried to drag no 3 and drop it at no 7. But all the other rows in between are selected while dragging.

Any help is much appreciated.

Thanks
Rakesh


 



2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 19 Jul 2013, 08:55 AM
Hello,

May I ask you to set the DragElementAction property of the RadGridView to "None" and let me know if this resolves the problem.
 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Rakesh
Top achievements
Rank 1
answered on 19 Jul 2013, 05:13 PM
Hey this worked perfect. Thanks for the help

Thanks
Rakesh
Tags
GridView
Asked by
Rakesh
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Rakesh
Top achievements
Rank 1
Share this question
or