1 Attachment(s)
adding an Ext.list to an Ext.TabPanel: items in list not selectable
Hi,
I'm using Sencha Touch 2.0.pr2
I found nothing in Your sencha 2.x forum so I'm asking. I already reduced my problem to the following:- I created an Ext.TabPanel
- I created an Ext.data.Store
- inside the Ext.TabPanel I defined an item as a list with xtype:'list', everything is working fine
- I created an Ext.List outside the Ext.TabPanel with Ext.create (or new Ext.List) using the same parameters and the result is, that the list-items ar not selectable.
Can somebody help me?
Thank You very much,
Frederic
Here is my code (the entire file):
Attachment 29246
Ext.application({
name: 'MonsterApp',
launch: function() {
Ext.create('Ext.TabPanel', {
fullscreen: true,
items: [ test1,
test2,
{ xtype: 'list',
title: 'Test3 works',
itemTpl: "{title}",
store: listdata
}
]
});
}
});
// listdata
var listdata = Ext.create('Ext.data.Store', {
fields: ['title'],
data: [ {title: 'Alpha'}, {title: 'Bravo'}, {title: 'Charly'} ]
});
// List definition Test1
var test1 = Ext.create('Ext.List',{
title: 'Test1',
itemTpl: '{title}',
store: listdata
});
// List definition Test1
var test2 = new Ext.List({
title: 'Test2',
itemTpl: '{title}',
store: listdata
});