View Full Version : grid drag and drop problem

11 Jul 2012, 5:20 AM
Hello all. I am working with Grid and grouping view. I added possibility of row drag and drop through groups and every time I move some row it is always places on the bottom of that group.

Here is my code for that:

new GridDragSource (grid);

GridDropTarget target = new GridDropTarget (grid);

target.setAllowSelfAsSource (true);
target.setFeedback (Feedback.INSERT);

Does any one have advice how to fix that? Thanks in advance.

10 Oct 2012, 11:47 AM
The problem happens because the grid Store puts the DND element at the end and the View is sorting by group. You can solve this problem in two different ways.
1. Implement your own loader with valid sorting and pass it to your store.
2. Just nullify your store sorter in the grid. => easier way...