PDA

View Full Version : grouptabpanel no load no rendered stores



jamesjara
28 Aug 2010, 11:01 AM
i have a big problem without solution , i have this grouptabpanel element because is very pretty, but i cant autoload stores if not existe a grouptabpanel item.

So i have to add Ext.getCmp('grouptabpanel').on('select',function() and load the store manually, i dont like this, i cant load without the onselect because the "store" doesnt exist.

thanks for the time :)



var viewport = new Ext.Viewport({
layout: 'border',
items: [{
region: 'north',
height: 32
}, {
region: 'center',
layout:'fit',
margins: '0 0 0 0',
items:[
{
xtype: 'grouptabpanel',
id: 'centro',
tabWidth: 130,
activeGroup: 0,
items: [
//SECCION 1 - PAGINA
{
mainItem: 0,
expanded: true,
items: [
{
title: 'Pagina',
iconCls: 'x-icon-configuration',
tabTip: 'Configuration tabtip',
style: 'padding: 10px;'
}
,
{
title: 'Estructura',
iconCls: 'x-icon-templates',
tabTip: 'dominio.com/PAIS/IDIOMA/pagina.html',
style: 'padding: 10px;',
layout: 'fit',
items : [ ".$form_estructura." ]
}
]
}
//fin de todos los items
]
}]
//FIN DEL GRUOPTABPANEL

},{
region: 'south',
layout:'fit',
margins: '0 0 0 0'
}]
});