-
1 Dec 2011 5:16 AM #1
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:
In 4.1-PR1, the grid no longer shows the LoadMask and I have to manually add "loadMask: true" to the config.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.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?
-
1 Dec 2011 9:34 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
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.
-
1 Dec 2011 9:42 AM #3
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?
-
1 Dec 2011 9:44 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
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.
-
1 Dec 2011 9:51 AM #5
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


Reply With Quote