1. #1
    Ext Premium User
    Join Date
    Oct 2011
    Posts
    10
    Vote Rating
    4
    ftrevino is on a distinguished road

      0  

    Default Unanswered: Drag and Drop on gridpanel Multiple Groups

    Unanswered: Drag and Drop on gridpanel Multiple Groups


    Hi,
    I have two grids from which I need to allow drag and drop, and from the example seems quite simple, but on my case I need to be able to drag from the grid on the right to the grid on the left, and also from the grid on the left to itself. So basically the grid on the left should allow drops from the one on the right and from itself. So far I haven't found a way to do it. Something like this:

    Left Grid
    viewConfig: {
    plugins: {
    ptype: 'gridviewdragdrop',
    dragGroup: 'leftGridDDGroup',
    dropGroup: 'rightGridDDGroup and leftGridDDGroup' <=== Of course this don't work.
    }
    }
    Right Grid
    viewConfig: {
    plugins: {
    ptype: 'gridviewdragdrop',
    dragGroup: 'rightGridDDGroup'
    }
    }



    Also both grids have different stores and models, is there a way to prevent the data from actually moving?, I just need to handle the move, see which rows are moved in order to create myself the new rows on the left side.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    Answers
    124
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Ext Premium User
    Join Date
    Oct 2011
    Posts
    10
    Vote Rating
    4
    ftrevino is on a distinguished road

      0  

    Default I got the question based on that example.

    I got the question based on that example.


    Thanks for your quick response sword-it, but as I commented on the thread, the example is quite basic, from left to right and vice-versa. But what I need is the one on the left accept drops from the right AND from the left too.

Thread Participants: 1