1. #1
    Ext JS Premium Member tangix's Avatar
    Join Date
    Mar 2010
    Location
    Stockholm, Sweden
    Posts
    550
    Vote Rating
    50
    tangix is a jewel in the rough tangix is a jewel in the rough tangix is a jewel in the rough

      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
    Gainesville, FL
    Posts
    36,756
    Vote Rating
    828
    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


    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
    ________________
    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.

  3. #3
    Ext JS Premium Member tangix's Avatar
    Join Date
    Mar 2010
    Location
    Stockholm, Sweden
    Posts
    550
    Vote Rating
    50
    tangix is a jewel in the rough tangix is a jewel in the rough tangix is a jewel in the rough

      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
    Gainesville, FL
    Posts
    36,756
    Vote Rating
    828
    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


    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
    ________________
    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.

  5. #5
    Ext JS Premium Member tangix's Avatar
    Join Date
    Mar 2010
    Location
    Stockholm, Sweden
    Posts
    550
    Vote Rating
    50
    tangix is a jewel in the rough tangix is a jewel in the rough tangix is a jewel in the rough

      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

Thread Participants: 1

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