Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Dec 2011
    Posts
    6
    Vote Rating
    1
    r0ro is on a distinguished road

      0  

    Default [ExtJS 4.1.1] Ext.grid.plugin.DragDrop missing requires

    [ExtJS 4.1.1] Ext.grid.plugin.DragDrop missing requires


    Ext version tested:
    • Ext 4.1.1
    Description:
    • Ext.grid.plugin.DragDrop is using "uses" instead

    Steps to reproduce the problem:
    • create a grid panel and add the dragdrop plugin

    The result that was expected:
    • no error

    The result that occurs instead:
    Code:
    TypeError: Ext.view.DragZone is not a constructor
    
    dragText: me.dragText
    
    onViewRender(view=Object { deferInitialRefresh=true, scroll=true, xtype="gridview",more...}) DragDrop.js (ligne 252)
    Possible fix:
    • use "requires" instead of "uses"
    or
    • use Ext.create('Ext.view.DragZone', ... instead of new Ext.view.DragZone
    • use Ext.create('Ext.view.ViewDropZone', ... instead of new Ext.view.ViewDropZone

  2. #2
    Sencha Premium Member
    Join Date
    Dec 2011
    Posts
    6
    Vote Rating
    1
    r0ro is on a distinguished road

      0  

    Default


    it seems that there is the same kind of problem with Ext.tree.ViewDragZone

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,327
    Vote Rating
    849
    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


    Looking at the examples/dd/dnd_grid_to_formpanel.html example, I edit the html to load ext-debug instead of ext-all and this example works without any errors.
    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.

Thread Participants: 1

Tags for this Thread