1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    4
    Vote Rating
    0
    Forumian is on a distinguished road

      0  

    Default Unanswered: Drag and Drop Example, move rows in a grid

    Unanswered: Drag and Drop Example, move rows in a grid


    In this sample Ext Js grid: http://dev.sencha.com/deploy/ext-4.0...d_to_grid.html
    You can drag and drop items from one grid to another, but you can't change the order of items in the second grid.
    You can drop items back and forth and order them the way you wish, but that's not an elegant way of doing it.
    What needs to change in the code so that one can move items up and down on the second grid (the one on right) ?

    Is it even possible?

    I was also gonna suggest that you implement this in your next version of demos, you are already allowing ordering, but not in a nice way, why not do this as well? It's also relevant to drag and drop so that would make this example more useful.

    Thanks for any help.

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,585
    Answers
    540
    Vote Rating
    322
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Dragging within the same grid is the default if you enable drag/drop. Take a look at the dragGroup and dropGroup settings in the demo to see why it behaves the way it does.

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    4
    Vote Rating
    0
    Forumian is on a distinguished road

      0  

    Default


    That's not very helpful of course one would look at drag and drop listeners,

    What I'm interested in is what specifically needs to change so that it behaves like the lower form in this example:

    http://dev.sencha.com/deploy/ext-4.0...lect-demo.html

  4. #4
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,585
    Answers
    540
    Vote Rating
    322
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    To enable drag/drop both between 2 grids and within the grids themselves you should just need to match up the 2 dragGroup and 2 dropGroup settings to all have the same value.

  5. #5
    Sencha User
    Join Date
    Sep 2011
    Posts
    4
    Vote Rating
    0
    Forumian is on a distinguished road

      0  

    Default


    You are right, thank you very much.

  6. #6
    Sencha User
    Join Date
    Dec 2011
    Posts
    6
    Vote Rating
    0
    Pranoti is on a distinguished road

      0  

    Default Need code changes

    Need code changes


    Still not clear, can you please show the code how to do it?
    Thax

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi