Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext JS Premium Member
    Join Date
    May 2011
    Posts
    11
    Vote Rating
    0
    anb is on a distinguished road

      0  

    Default [4.0.6] Grid Editing throws exception in Firebug: "_root is null"

    [4.0.6] Grid Editing throws exception in Firebug: "_root is null"


    Not sure if this is an Ext or Firebug bug, but it's annoying when developing with FF/Firebug.


    REQUIRED INFORMATION




    Ext version tested:
    • Ext 4.0.6
    Browser versions tested against:
    • FF 6.0.2 (firebug 1.8.3 installed)
    • IE 9 (no bug)
    • Chrome 14 (no bug)
    Description:
    • When editing a record of a store which is bound to a grid panel, firebug throws a "_root is null" exception, but the record is modified and the grid gets updated as expected.
    Steps to reproduce the problem:Test Case:


    Code:
    Ext.onReady(function () {
    
    
        var grid,
            store,
            model;
        
        Ext.define('MyModel', {
        extend : 'Ext.data.Model',    
        fields:['name', 'email', 'phone']
        });
            
        store = Ext.create('Ext.data.Store', {
            model : 'MyModel',
            storeId : 'MyStore',
            data : {
                "items" : [
                    {
                        'name' : 'Lisa',
                        "email" : "lisa@simpsons.com",
                        "phone" : "555-111-1224"
                    },
                    {
                        'name' : 'Bart',
                        "email" : "bart@simpsons.com",
                        "phone" : "555-222-1234"
                    },
                    {
                        'name' : 'Homer',
                        "email" : "home@simpsons.com",
                        "phone" : "555-222-1244"
                    },
                    {
                        'name' : 'Marge',
                        "email" : "marge@simpsons.com",
                        "phone" : "555-222-1254"
                    }
                ]
            },
            proxy: {
                type: 'memory',
                reader: {
                    type: 'json',
                    root: 'items'
                }
            }
        });
        
        grid = Ext.create('Ext.grid.Panel', {
            title: 'Simpsons',
            store: store,
            columns: [
                { header: 'Name',  dataIndex: 'name' },
                { header: 'Email', dataIndex: 'email', flex: 1 },
                { header: 'Phone', dataIndex: 'phone' }
            ],
            height: 200,
            width: 400,
            renderTo: Ext.getBody()
        });
            
        store.load(function () {
                store.getAt(0).set('name', 'Lisa Changed');
            });
    });



    HELPFUL INFORMATION




    See this URL for live test case: http://docs.sencha.com/ext-js/4-0/#!...l-editing.html




    Debugging already done:
    • none
    Possible fix:
    • not provided
    Operating System:
    • Win 7 Business

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,006
    Vote Rating
    650
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    See: http://www.sencha.com/forum/showthre...te-evaluation)

    It's in a try catch block, if FF is set to break on all errors, it will break there.

    Closing off.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1

Tags for this Thread