tangix
1 Dec 2011, 5:16 AM
Running the following code in 4.1-PR1:
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?
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?