I have two listboxes which items may be drag and dropped between. However, there are certain items within one of the listboxes which I do not want to be able to be dragged.
By the time I the dragStart event is fired, I know whether the item selected for the drag is allowed to be or not, so I examined the dragStart’s event parameter and found the event.args.owner._dragCancel property which looked promising. So I tried setting the property to true when I needed to cancel the drag and, while it did prevent the drag operation from continuing, it left the dragged item’s drag image in the top right corner of the web page.
I have tried this in both Firefox and IE9 and get the same results in both.
What is the correct way to stop the drag from occurring?
Regards,
David.