Hello, I want to abort a drag & drop when users try to drop to an invalid target in a tree.
I am using GXT3.1, but I think the APIs are the same. How can I achieve it? Thanks.


Here is my attempt, but it does not work.
Code:
        target.addDropHandler(new DndDropHandler(){
            @Override
            public void onDrop(DndDropEvent event) {
                   // what can I do with a DragEndEvent ?
                   DragEndEvent endEvent = event.getDragEndEvent();
                
                    event.getStatusProxy().setStatus(false);
                    System.out.println("drop!");
            }
        });
Here is my another attempt, and still no luck.
Code:
	    target.addDragEnterHandler(new DndDragEnterHandler(){


			@Override
			public void onDragEnter(DndDragEnterEvent event) {
				// TODO Auto-generated method stub
				event.setCancelled(true);
				event.getStatusProxy().setStatus(false);
				System.out.println("drag enter!");
			}
	    	
	    });