Hello Team, I am new to GWT and working on an existing code. I am trying to implement a drag and drop functionality .I am having issues getting data from DataTransfer object. I need to drag and drop any file from the computer on the widget.
*grid.addDropHandler(new DropHandler() { @Override public void onDrop(DropEvent event) { event.preventDefault();* * DataTransfer dataTransfer = event.getNativeEvent().getDataTransfer();* * dataTransfer.setDropEffect(DropEffect.COPY);* * Object data = dataTransfer.getData("File");* * } });* I am getting an empty-string on dataTransfer.getData("file")' How can we set the format "File" while doing dataTransfer.setData(); I think I am doing something wrong here . Please advice. Thank you Ronit -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/b2f9b832-3e28-419c-8af1-703a8056178en%40googlegroups.com.