Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    10
    Vote Rating
    0
    blum@wapa.gov is on a distinguished road

      0  

    Default Drag n Drop of Multi Select Enabled Grid rows can result in wrong ordering

    Drag n Drop of Multi Select Enabled Grid rows can result in wrong ordering


    Best way to describe this is with the supplied Grid to Grid DnD example:
    1. Click on Row 1 to select
    2. Ctrl-Click on Row 0 to add the selection
    3. Drag to the other grid
    4. Row 1 is above Row 0!
    If you select Row 0 & then ctrl-select Row 1 it works as expected. Seen in ExtJS 4.1.1 & 4.2.0. BTW, this is also true with DnD of multi-selects within one grid though you can't do that with the example code.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,645
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This is because of the selection model keeps your selection in order that you select them so if you do

    Code:
    grid.getSelectionModel().getSelection()
    after step 2 you will see the order there has row 1 first. The 2nd grid's store you can have a sorter to get around this.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    10
    Vote Rating
    0
    blum@wapa.gov is on a distinguished road

      0  

    Default I would still consider this unintuitive or at least undocumented.

    I would still consider this unintuitive or at least undocumented.


    That's what I thought was going on, but I can live with it.

    Thanks!

Thread Participants: 1