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
    16,828
    Vote Rating
    609
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi