1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    12
    Vote Rating
    0
    blacksword888 is on a distinguished road

      0  

    Default grid panel Drag and drop error

    grid panel Drag and drop error


    Hi,
    I'm using this Example of drag and drop
    http://ext4all.com/post/extjs-4-grid-drag-and-drop-rows-reordering

    but when i start to drag, i get this error :
    Uncaught TypeError: undefined is not a functionext-debug.js:12010

    here is my code:

    PHP Code:
    Ext.require([
        
    'Ext.grid.*',
        
    'Ext.data.*',
        
    'Ext.dd.*'
    ]);


    Ext.application({
        
    name'Admin',
        
    appFolder'app',


        
    launch: function() {


            
    Ext.create('Ext.data.Store', {
                
    storeId:'simpsonsStore',
                
    fields:['name'],
                
    data: [["Lisa"], ["Bart"], ["Homer"], ["Marge"]],
                
    proxy: {
                    
    type'memory',
                    
    reader'array'
                
    }
            });


            
    Ext.create('Ext.grid.Panel', {
                
    store'simpsonsStore',
                
    columns: [
                    {
    header'Name',  dataIndex'name'flextrue}
                ],
                
    viewConfig: {
                    
    plugins: {
                        
    ptype'gridviewdragdrop',
                        
    dragText'Drag and drop to reorganize'
                    
    }
                },
                
    height200,
                
    width400,
                
    renderToExt.getBody()
            });
        }
    }); 
    thank you !

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    What Ext JS 4.x.x version are you using? I just tried your code with 4.2.0 and I do not get any errors.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread