Hi,

I'm trying to fill a tpl in a Panel, but it's not working. I have the following code:
PHP Code:
/* Create model and store */
app.models.locations Ext.regModel('app.models.locations', {
                                     
fields: ['name''email']
                                     });


app.stores.store = new Ext.data.JsonStore({
    
model  'app.models.locations',                                           
    
getGroupString : function(record) {
        return 
record.get('name')[0];
    },
});

/* Add something in the model/store */
var rank Ext.ModelMgr.create({
    
name'aaa',
    
email'em@il.com'
}, 'app.models.locations');

app.stores.store.add(rank);
 
/* Create tpl */
var test = new Ext.XTemplate('template goes here {name}');

app.views.main Ext.extend(Ext.Panel, {

    
items: [{
            
xtype:'panel',
            
storeapp.stores.store,
            
tpltest
    
}],
    
html:'content' 
As you can see i'm creating a model/store, fill it with 1 item and after that i'm trying to output it as a TPL in that Panel. But it doesn't print the TPL content at all.

It does work however, when i change the xtype to 'list' and 'tpl' to 'itemTpl', Unfortunately i don't need a list but i need to display the tpl in a Panel.

Anyone any idea what i'm doing wrong??