3 Replies Latest reply on Oct 29, 2008 4:34 PM by Newsgroup_User

    Can you Cancel "acceptDragDrop()" using Manual Drag-and-Drop?

    ericbelair Level 1
      I have an AdvancedDataGrid (ADG) with manually drag-and-drop functionality built in. The user can only drag-and-drop within the one ADG. I do this in order to validate which items can be dragged, and where they can be dropped. I have run into one problem, however. In my override of dragEnterHandler(), I call DragManaged.acceptDragDrop() if the user drags an item over a valid item. However, if they don't drop the item there, and continue to drag the item around the ADG, and roll over an item that is not valid, there's no way to cancel the drop.

      Does anyone have any suggestions?