PDA

View Full Version : Portal: Get items added dynamically



manuito
13 Feb 2010, 2:40 AM
I have this portal:


var optConfigurar={
id:'config',
xtype: 'portal',
title: 'Configurar Aula',
iconCls: 'x-icon-configuration',
tabTip: 'Configurar el Aula',
style: 'padding: 10px; ',
items:[],
listeners:{
drop:function(portal){
alert(optConfigurar.items.length);
}
},
};

I add dynamically columns of portlets. This works perfectly and this is displayed correctly, but when I drop a portlet, the alert show 0 items.