I have following grid:
Code:
Grid datagrid = new Grid<ModelData>(detailsStore, cm);
final GridDragSource gds = new GridDragSource(datagrid);
target = new GridDropTarget(datagrid);
target.setFeedback(Feedback.INSERT);
target.setAllowSelfAsSource(true);
I am able to move row upwards without any problems, but downwards the row is place one step too low. And in case of last position the row disappears.
It looks like the item is removed from the detailStore at the start of the DnD. If the item is dragged to be the last of the list, the index is outside the list bounds and apparently an error happens silently and the item is not inserted successfully.