1. #1
    Ext JS Premium Member tangix's Avatar
    Join Date
    Mar 2010
    Location
    Stockholm, Sweden
    Posts
    453
    Vote Rating
    43
    tangix has a spectacular aura about tangix has a spectacular aura about tangix has a spectacular aura about

      0  

    Default Extending classes in 4.1-PR1: what am I missing?

    Extending classes in 4.1-PR1: what am I missing?


    Running the following code in 4.1-PR1:
    Code:
    Ext.define('VTProctor.view.sites.CompanyGrid', {
        extend: 'Ext.grid.Panel',
        alias: 'widget.companygrid',
    
        columns: [
        {
            header: 'Name',
            dataIndex: 'company_name'
        },{
            header: 'Class',
            dataIndex: 'className'
        },{
            header: 'Customer No',
            dataIndex: 'company_customerNo'
        },{
            header: 'Territory',
            dataIndex: 'territoryName'
        },{
            header: 'Country',
            dataIndex: 'printable_name'
        },{
            header: 'Employees',
            dataIndex: 'employees'
        },{
            header: 'Website',
            dataIndex: 'company_website'
        }
        ],
    
        initComponent: function() {
            console.log('sites.CompanyGrid init');
            this.store = Ext.getStore('sites.Companies');
    
            this.bbar = Ext.create('Ext.PagingToolbar', {
                store: Ext.getStore('sites.Companies'),
                displayInfo: true,
                displayMsg: 'Displaying Companies {0} - {1} of {2}',
                emptyMsg: "No Companies to display"
            });
    
            this.callParent(arguments);
        }
    
    })
    In 4.1-PR1, the grid no longer shows the LoadMask and I have to manually add "loadMask: true" to the config.
    In 4.0.7 the default ("true") is applied and in 4.1-PR1 the default is true (tested with the example) but it is not applied!

    There must be something I am missing here... What?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,121
    Vote Rating
    453
    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 mitchellsimoens has much to be proud of

      0  

    Default


    In our latest code which will be the nest release, I see the load mask by default.
    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.

  3. #3
    Ext JS Premium Member tangix's Avatar
    Join Date
    Mar 2010
    Location
    Stockholm, Sweden
    Posts
    453
    Vote Rating
    43
    tangix has a spectacular aura about tangix has a spectacular aura about tangix has a spectacular aura about

      0  

    Default


    As I put in my post - I have verified that loadMask = true by default, in both 4.0.7 and 4.1-PR1.

    My real question was - why doesn't my extend work and set the loadMask property?

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,121
    Vote Rating
    453
    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 mitchellsimoens has much to be proud of

      0  

    Default


    Nothing sticks out to me although I never put Arrays and Objects as a property. They can sometimes be shared across instances but that shouldn't bother the load mask.
    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.

  5. #5
    Ext JS Premium Member tangix's Avatar
    Join Date
    Mar 2010
    Location
    Stockholm, Sweden
    Posts
    453
    Vote Rating
    43
    tangix has a spectacular aura about tangix has a spectacular aura about tangix has a spectacular aura about

      0  

    Default


    OK - this seems not to be a problem with the extended grid - it seems to be a problem with the run-away load masks discussed here:
    http://www.sencha.com/forum/showthre...-browser-again

    My extended class works until I change tabs and then the mask is gone which caused me to think that the extend was wrong.

    Thanks,
    /Mattias