I'm trying to drag and drop an element from a DataGrid which is the widget of a FocusPanel. The target is another DataGrid which is the widget of another FocusPanel contained in a DialogBox. The method onDragStart works fine. I can check with the debugger (Firefox 53.0) that the dataTransfer object is populated with the setData method of the DragStartEvent. On the side of the target the onDrop method is correctly called. The issue is that the dataTransfer object is null and the getData method of DropEvent returns an error. I don't understand why the dataTransfer object is null.
GWT 2.8 dropevent datatransfer null
143 Views Asked by Search17 At
1
There are 1 best solutions below
Related Questions in DATAGRID
- The filtering screen in mui datagrid is broken
- Mudblazor: MudDataGrid KeyBoardNavigation
- how to create a datatable with multiple data listing and sorting in same column?
- The radgridview row data count in WPF
- Mudblazor Datagrid Pre-loaded filter
- How to pass MUI Datagrid props to Modal on Action Button Click
- Unable to multiselect (SelectionMode="Extended") row in a WPF datagrid
- Unexpected vertical lines when resizing a DataGrid
- How to get column and row index from Powershell XAML gui datagrid?
- wpf datagrid does not bubble the scrollwheel event
- selection not working in data grid, maybe it's not updating
- WPF DataGrid adds a column with the name of a class variable, unable to get contents of cells
- right arrow key is not working in WPF Devepress TextEdit
- .NET 6 to .NET 8 troubleshooting
- wpf scrollintoview high cpu and freezing
Related Questions in DRAG-AND-DROP
- React Grid Drag n Drop
- In SwiftUI and macOS how do I copy-and-paste and drag and drop multiple local file URLs into a scroll view
- need an function swap for swaping elements
- How to keep drag preview exactly the same as original item?
- How can I configure Angular Material drag and drop to allow dropping an element when the cursor is outside the drop zone
- can't drag boxes to specific time slot in weekly calendar
- How to create a function on reordering the project views using Cypress automation
- SwiftUI - List multi selection move / reorder (works on Mac but not on iOS)
- OnBeginDrag does not get called when a nested Canvas is attached in Unity UI
- Block file opening when drag and drop
- Drag&Drop feature in jquery drops element at seemingly random position
- Cannot drag boxes in calendar weekly column
- How drag and drop 2D UI elements of Canvas in OVR ray interactable?
- How to appendchild() using drag drop with 2 hierarchically equal divs? using Typescript
- Is it possible to change the cursor while dragging using HTML drag and drop
Related Questions in GWT-2.8
- Debug Doesn’t Work After Migrating SmartGWT from v4.0 to v13.0
- GWT compile error: Rebind result cannot be abstract DOMUtilImpl
- Getting Uncaught RangeError: Maximum call stack size exceeded in GWT 2.9 post compilation
- GWT SimplePager style not working after migrating to GWT 2.8
- GWT Upgrade from 2.3 to 2.8.1
- Change loading sequence of style-sheet in GWT/SmartGWT
- Eclipse / launch / Java Classpath enclosed in quotes / breaks 3rd party tools / blocks development
- How to use XMLHttpRequest in GWT?
- What is the best way to customize or entirely skip GWT's *.nocache.js
- Unresponsive tabs in Chrome and Safari after upgrading to GWT 2.8
- GWT compilation error with Maven: No instance of Presenter is defined. Forget to annotate @Presenter or @EventHandler?
- GWT 2.8 cannot get custom linker to work
- GWT 2.8 dropevent datatransfer null
- calling gwt function from js file code.[Error is not a function]
- GWT Compiler : when is a compilation error fatal?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I found the answer when reading the paragraph "Performing a Drop" on MDN "Drag Operations". There is a js code snippet where event.preventDefault() is placed at the end of the onDrop function. This drew my attention since my Java code is calling preventDefault() in the beginning of the onDrop() method. I moved the call to preventDefault() to the end of the method and it works. The dataTransfer is no more null and getData() returns the correct information.