I'm using a TreeGrid to display some data. Since I implemented the treegrid, extjs keeps throwing this error:
Store defined with no model. You may have mistyped the model name.
I debugged a bit and found out, that this is thrown because there is a "nodeStore" without model.
Where does this "nodeStore" come from and what am I doing wrong?
Store:
Ext.define('AM.store.AdvertiserStatistics', {
extend: 'Ext.data.TreeStore',
model: 'AM.model.AdvertiserStatistic',
autoLoad: false,
folderSort: true,
startDate: new Date().getTime(),
endDate: new Date().getTime(),
nodeType: 'weekly',
parentId: null,
[..]
Model:
Ext.define('AM.model.AdvertiserStatistic', {
extend: 'Ext.data.Model',
fields: [
{
name:'id',
type:'int',
useNull:true
},
'email',
'clientname',
],
proxy:{
type:'ajax',
reader:{
type:'json',
root:'data'
},
api:{
read:BASE_PATH + 'advertisers/index/stats:true/',
destroy: BASE_PATH + 'advertisers/index/stats:true/'
},
base_api: {}
}
});