PDA

View Full Version : xtype:'list' ??



myput
20 Sep 2011, 4:56 AM
Hey,
i would like to implement a nestedList in my view, i have just a problem.
I have seen in some codes, peoples write: xtype:'list'...
but it don't work for me ...

My code is:


WPApp.views.NavigationListView = Ext.extend(Ext.Panel, {
fullscreen: true,
layout: 'card',
items: [{
xtype: 'list',
store: WPApp.stores.NavigationListStore,
itemTpl: '{text} {Name}',
grouped: false,
scroll: 'verical',
}],
initComponent: function() {
WPApp.views.NavigationListView.superclass.initComponent.call(this);
}
});


Ext.reg('NavigationListView', WPApp.views.NavigationListView);


When i write
xtype: 'panel', i don't have a white page but my list isn't display.

Have you an idea for display my nestedList ?

myput
20 Sep 2011, 6:06 AM
In fact, that's good; don't need to use xtype: 'list'.
i just wrote lot of var in my view, and charge the NestedList by
items: [nestedList],

Thanks

AndreaCammarata
20 Sep 2011, 7:06 AM
Hi myput.
You have two errors in your code:

- Remove the comma after



scroll: 'verical',


- xtype for Ext.NestedList component is "nestedlist" not "list". That is for Ext.List component.

Hope this helps.

myput
20 Sep 2011, 7:09 AM
Yes thank you, i have seen :D and change lot of code now. that's work thanks :)