qbert65536
23 Sep 2010, 2:55 PM
I have the following
Music = Ext.extend(Ext.Container, {
layout: 'fit',
title: 'Music',
constructor: function(config) {
this.store = new Ext.data.TreeStore({
model: 'Song',
scope : this,
proxy: {
type: 'ajax',
url: '/listenDev/mobile/getMusic?action=artists',
reader: {
type: 'tree',
root: 'children'
}
}
});
this.nestedList = new Ext.NestedList({
title: 'Music',
displayField: 'title',
scope : this,
store: this.store
});
},
items: this.nestedList
});
But It's always giving me
Cannot read property 'ownerCt' of undefined .
And trying to add things in the constructor using Music.superclass.add(this.nestedList ); gives me
Cannot read property 'length' of undefined
What am I doing wrong ?
Music = Ext.extend(Ext.Container, {
layout: 'fit',
title: 'Music',
constructor: function(config) {
this.store = new Ext.data.TreeStore({
model: 'Song',
scope : this,
proxy: {
type: 'ajax',
url: '/listenDev/mobile/getMusic?action=artists',
reader: {
type: 'tree',
root: 'children'
}
}
});
this.nestedList = new Ext.NestedList({
title: 'Music',
displayField: 'title',
scope : this,
store: this.store
});
},
items: this.nestedList
});
But It's always giving me
Cannot read property 'ownerCt' of undefined .
And trying to add things in the constructor using Music.superclass.add(this.nestedList ); gives me
Cannot read property 'length' of undefined
What am I doing wrong ?