Ext.List
component superclass of Ext.DataView
, not Ext.Panel
.
Therefore, you will need to add two lists to two separate panels and add these two panels inside the super panel.
In addition, you will need to make layout:'vbox'
for the super panel and make layout:'fit'
for the other two child panels
Here is how you can do it.
.... .... var superpanel = new Ext.Panel({ fullscreen: true, layout: 'vbox', // to vertically stack two list. items: [ { xtype: 'panel', id: 'panel_1', width: '100%', layout: 'fit', items: [ { xtype: 'list', flex:1, id: 'list1', store: 'samplestore1' } ] }, { xtype: 'panel', id: 'panel_2', width: '100%', layout: 'fit', items: [ { xtype: 'list', id: 'list2', flex:1, store: 'samplestore2' } ] } ] }); .... ....
source share