Results 1 to 5 of 5

Thread: GXT grid and grid row drag'n drop

  1. #1
    Ext User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    31
    Vote Rating
    0
      0  

    Question GXT grid and grid row drag'n drop

    I am trying to add possibility to reorder grid rows and 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.

    Any suggestions or is this a bug in GXT?

  2. #2
    Ext User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    31
    Vote Rating
    0
      0  

    Default

    It seems that in this case the ModelData item is removed from the store when DND starts. When it is placed to be the last item, the insert is done outside store boundary and an exception happens silently.

    Is there a way to find out the original index of the item?

  3. #3
    Sencha User
    Join Date
    Oct 2007
    Posts
    11
    Vote Rating
    0
      0  

    Default

    I have the same problem.

    Pepez, have you a solution ?

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    This was reported before and is already fixed in SVN.

  5. #5
    Sencha User
    Join Date
    Nov 2014
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Sorry. I still have the same issue like pepez where the sorted row goes to the bottom of the grid.

Posting Permissions

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