Print Page | Close Window

How to roll back a Drag and Drop operation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19221
Printed Date: 27 June 2024 at 4:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to roll back a Drag and Drop operation
Posted By: Rat
Subject: How to roll back a Drag and Drop operation
Date Posted: 24 November 2011 at 4:57am
I drag one item from ReportControl A and drop it to ReportControl B.
If the item doesn't match, a 'Yes/No' messageBox will be shown to ask whether the drag and drop operation will continue.
If the user choose continue the operation, the drag and drop operation will be finished.
If the user choose stop the operation, the items of control A and control B should keep the old status.
 
Now, I put above operation in OnReportDrop() method. When the user choose 'No', I wrote 'return;'.
And I forbid the other operation in  OnReportDragDropCompleted() method.

But the item still disappear in control A and appear in control B.

So,How to roll back a drag and drop operation?

Thanks very much.

 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net