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

Strange behaviour of scroll bar with drag and drop

2 Answers 30 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Hans asked on 09 Mar 2011, 06:11 PM
Hello,
I have the following problem:
I used the RadGridView in a Silverlight application and enabled Drag and Drop on it. The problem is that if I first select a row and then move the horizontal or vertical scrollbar with the mouse the cursor shows the symbol like when it is dragging and the grid scrolls in a very unconvenient way.
You can find my sample project here:
http://dl.dropbox.com/u/17384/DragDropProblem.zip

Thanks for any help
Regards
Manfred

2 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 10 Mar 2011, 09:37 AM
Hi Hans,


In order to disable drag while over the scrollbar the following code will be required in the OnDragQuery:

Copy Code
e.QueryResult = e.GetElement<ScrollBar>(e.Options.MouseClickPoint)==null;

Let me know if you have any further questions.

All the best,
Tsvyatko
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Hans
Top achievements
Rank 1
answered on 12 Mar 2011, 12:55 PM
Hi Tsvyatko,
this line of code solved my problem! Thank you very much!!

Regards
Tags
DragAndDrop
Asked by
Hans
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Hans
Top achievements
Rank 1
Share this question
or