11 Jul 2012 5:20 AM #1
Unanswered: grid drag and drop problem
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);
10 Oct 2012 11:47 AM #2
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...