marxan
21 Jun 2012, 7:49 AM
Hello,
I have the following code that display correctly my grid when I don't try to load the data.
Unfortunately as soon as I add the onRender to load my store I have an issue, in firebug my Json is correctly loaded so I guess this is a problem with the grid, maybe I don't use the correct way to load my grid when is rendered?
Here's the error I get:
Uncaught TypeError: Cannot read property 'addCls' of null
Ext.define('TAB.view.MetrSeriesGrid', {
extend: 'Ext.grid.Panel',
alias : 'widget.MetrSeries',
store: 'MetrSeriesStore',
/*onRender:function() {
this.store.load()
},*/
columns: [
{
header : 'Country',
// flex : 1,
// sortable : false,
dataIndex: 'CODESERIE'
},
{
header : '2001',
width : 75,
dataIndex: 'LABEISO'
}]
});
Thanks for any help.
Regards
I have the following code that display correctly my grid when I don't try to load the data.
Unfortunately as soon as I add the onRender to load my store I have an issue, in firebug my Json is correctly loaded so I guess this is a problem with the grid, maybe I don't use the correct way to load my grid when is rendered?
Here's the error I get:
Uncaught TypeError: Cannot read property 'addCls' of null
Ext.define('TAB.view.MetrSeriesGrid', {
extend: 'Ext.grid.Panel',
alias : 'widget.MetrSeries',
store: 'MetrSeriesStore',
/*onRender:function() {
this.store.load()
},*/
columns: [
{
header : 'Country',
// flex : 1,
// sortable : false,
dataIndex: 'CODESERIE'
},
{
header : '2001',
width : 75,
dataIndex: 'LABEISO'
}]
});
Thanks for any help.
Regards