1. #1
    Ext User
    Join Date
    Sep 2008
    Location
    UK
    Posts
    31
    Vote Rating
    0
    pepez is on a distinguished road

      0  

    Exclamation [FIXED] GXT 1.2.3: Grid Drag'n Drop with self as source

    [FIXED] GXT 1.2.3: Grid Drag'n Drop with self as source


    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.

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    The problem is somethign else but i have a fix ready and will be in svn soon.

  3. #3
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN.

Thread Participants: 1