Results 1 to 2 of 2

Thread: grid drag and drop problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default 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:

    Code:
    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.

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default

    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...
    ex>
    Code:
    store.setStoreSorter(null);

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •