• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Sencha architect.. how to have multiple plugins on grid ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sencha architect.. how to have multiple plugins on grid ?

    Hi..
    i'm trying to build a drag and drop solution between 2 grids, via S.A i add the grid drag and drop plugin... and it works for dragging between and over the 2 grids.

    However i also want the reordering capability in one grid... and it seems i cannot add the same plugin once more via S.A

    when adding the code directly in the source.. it works..

    am i overlooking something. or is this not possible within s.a.

    the manually added code (that works) looks like this.
    PHP Code:
    items: [
                    {
                        
    xtype'gridpanel',
                        
    flex1,
                        
    frametrue,
                        
    itemId'groppaswerkmo',
                        
    forceFittrue,
                        
    store'OpPaswerkMos',
                        
    viewConfig: {
                            
    plugins: [
                                {
                                    
    ptype'gridviewdragdrop',
                                    
    dragGroup'group1',
                                    
    dropGroup'group2'
                                
    },    {
                                    
    ptype'gridviewdragdrop',
                                    
    dragGroup'group1',
                                    
    dropGroup'group1'
                                
    }
                            ],
                            
    listeners: {
                                
    drop'onViewDrop'
                            

    it seems like this cannot be done via S.A, and when opening architect overwrites my manually added code..

  • #2
    I can't figure out why you need two gridviewdragdrop plugins with different dropGroups to accomplish this. You should be able to do it with just one. Can you provide more of your code or create a simplified fiddle (fiddle.sencha.com) that we could analyze?

    Comment


    • #3
      Hi Richard,
      thx for the reply ..

      Some more background info:


      i want to drag and drop items back and forth from lets say first grid to a second grid. but also want the ability to change the sequence within the second grid...

      i've started from the kitchensink example for the DD grid to Grid..
      and also wanted the ability to 'resequence' the records in the second grid...

      i've found the tip for using twice the same plugin by googling. (https://www.sencha.com/forum/showthr...d-across-grids)...
      as mentioned ; it works when i manually change the code, but i don't see how i can do from within Architect.

      i've created a fiddle:
      https://fiddle.sencha.com/#fiddle/o1q

      Comment

      Working...
      X