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

can not get DragStatus.DropComplete always DragCancel

2 Answers 47 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Vit100
Top achievements
Rank 1
Vit100 asked on 26 May 2011, 03:13 PM
Hi guys,
Any idea what could be wrong?
Source and target on the same page in the same grid.

OnDropInfo EvenHandler is called if mouse is over with dragged element. If  mouse btn released on the target Status=DragCancel.
At the same time if mouse is leaving area Status=DropImposible - what is good.
But nothing can make status have DragComplete status...

My solution I can not show - as it is very big and depends on local webservices...so it will not work in your env.

2 Answers, 1 is accepted

Sort by
0
Accepted
Tsvyatko
Telerik team
answered on 26 May 2011, 04:35 PM
Hello Vit100,

 This sound like either source or destination has not approved this operation. You can do this in the corresponding DragQuery/DropQuery events through e.QueryResult. More information can be found on this help article

Regards,
Tsvyatko
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
0
Vit100
Top achievements
Rank 1
answered on 26 May 2011, 04:49 PM
Yep. I messed up with OnDragQuery event handler and e.QueryResult = true got inside of

 

 

if (e.Options.Status == DragStatus.DragQuery) {}

 


and was not called.

after I moved e.QueryResult = true out of "if" statement everything started working.

Thanks.
Tags
DragAndDrop
Asked by
Vit100
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Vit100
Top achievements
Rank 1
Share this question
or