Docs
API
  • dropitems(grid:Object, items: Array, rowIndex: Number)

    function

    On drop items from another grid.
    It is used only if gridToGrid param is set.

    Example

    
    ...
    events: [{
      dropitems: function(grid, items, rowIndex){
        
      }
    }],
    renderTo: 'mainOffice',
    gridToGrid: {
      dragGroup: 'dd-group-main-office',
      dropGroup: 'dd-group-new-office',
      dropZone: {
        overClass: 'fancy-grid-body'
      },
      onDrop: function(items, rowIndex){
        this.remove(items);
          
        FancyGrid.get('newOffice').insert(rowIndex, items);
      }
    },
    ...
    ...
    renderTo: 'newOffice',
    gridToGrid: {
      dragGroup: 'dd-group-new-office',
      dropGroup: 'dd-group-main-office',
      dropZone: {
        overClass: 'fancy-grid-body'
      },
      onDrop: function(items, rowIndex){
        this.remove(items);
        
        FancyGrid.get('mainOffice').insert(rowIndex, items);
      }
    },
    
    • grid - grid.
    • items - drop rows(items).
    • rowIndex - rowIndex of drop.