DragDropManager's DragOver event not fired when user is fast

0 Answers 69 Views
DragAndDrop
Daniel
Top achievements
Rank 1
Daniel asked on 27 Apr 2023, 09:04 AM

Hi

I use DragDropManager inside a RadGridView. When a user drags a row over another row I want to perform an action. I setup the DragOver event with:

DragDropManager.AddDragOverHandler(row, OnRowDragOver);

This works most of the time. However if a user moves the mouse in a fast movement over the row the event is not fired.

Is there some property (maybe updateTime or throtteTime) I can lower to ensure the event is always fired?

Martin Ivanov
Telerik team
commented on 02 May 2023, 08:16 AM

The only setting on this topic available in DragDropManager are the MinimumHorizontalDragDistance and MinimumVerticalDragDistance static properties. These are set to 4px by default. You can try with different values. If this doesn't help, can you send a video showing the issue?
Daniel
Top achievements
Rank 1
commented on 03 May 2023, 09:40 AM

Hi Martin,

Thank you for the answer. The specified setting did not solve the problem. However I made a workaround that cancels the reordering when the item is dropped if no drag over event was fired. This prevents an invalid reordering. So my issue is fixed.

No answers yet. Maybe you can help?

Tags
DragAndDrop
Asked by
Daniel
Top achievements
Rank 1
Share this question
or