PDA

View Full Version : nestedList list items display, but no text.



igaenssley
1 Oct 2010, 3:47 PM
I've got a tab panel with a few tabs. one tab contains a nested list as an item.


{
title: 'Nested List Tab',
iconCls: 'bookmarks',
items:[
{
xtype:'list',
bodyMargin:10,
layout:'fit',
displayField: 'text',
title:'test',
items:[
{
text:'item 1',
leaf:true
},
{
text:'item 2',
leaf:true
}
]
}
]
}


The list renders, and there is a white line item for both items, but it does not display the text. any thoughts?

aconran
1 Oct 2010, 5:03 PM
I don't see a NestedList in this example.

There is a panel (without a layout) and a list as a single child item.

Your list should not be using a layout and it should not have items.

What are you trying to achieve?

jep
1 Oct 2010, 6:26 PM
This was confusing to me, too - that a list was supposed to operate solely off of tpl and a store, and not do anything with "items" or "data". Of they did say nestedlist, so there may be even more problems.