In this code ...
var panel = new Ext.Panel({
fullscreen : true,
scroll : "vertical",
layout : {
type : "accordion"
},
items: [
{ xtype : "panel", title : "One Title", html : "One" },
list,
{ xtype : "panel", title : "Three Title", html : "Three" },
{ xtype : "panel", title : "Four Title", html : "Four" },
{ xtype : "panel", title : "Five Title", html : "Five" },
{ xtype : "panel", title : "Six Title", html : "Six" }
]
});
In this, the panel title were hard coded as One title, Three title, etc.. but i want to display the result what i am getting from database (i have created the model and i got the result to display) as title of each panel ... how to iterate and show .. pls help me..