meyerovb
30 Jun 2010, 8:21 PM
This works:
Ext.setup({onReady: function () {
var e = new Ext.Panel({ fullscreen: true, items: [{ html: 'a' }, { html: 'b'}] });
e.add({ html: 'c' });
e.doLayout();
}});
Change it to an Ext.List and it blows up in the DataView's refresh method on the following line because 'this.store' is undefined:
if (this.store.getRange().length < 1 && (!this.deferEmptyText || this.hasSkippedEmptyText)) {
el.update(this.emptyText);
}
What's the appropriate way to dynamically add items to a list?
Ext.setup({onReady: function () {
var e = new Ext.Panel({ fullscreen: true, items: [{ html: 'a' }, { html: 'b'}] });
e.add({ html: 'c' });
e.doLayout();
}});
Change it to an Ext.List and it blows up in the DataView's refresh method on the following line because 'this.store' is undefined:
if (this.store.getRange().length < 1 && (!this.deferEmptyText || this.hasSkippedEmptyText)) {
el.update(this.emptyText);
}
What's the appropriate way to dynamically add items to a list?