PDA

View Full Version : The methods of the class portal don't work



manuito
11 Feb 2010, 3:49 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){
this.setSpacing(15); // Don't work
portal.setSpacing(15); // Don't work
optConfigurar.setSpacing(15); // Don't work

alert(optConfigurar.items[0].id); // id of the column 0 Don't work
alert(optConfigurar.items[0].items[0].loginname); loginname of the portlet 0 of the column 0 Don't work
}
},
};

Dont work anything, I am desperate!!!

tryanDLS
11 Feb 2010, 10:08 AM
"Don't work" is not a valid problem description. Please read http://extjs.com/learn/Ext_Forum_Help

Just based on that snippet, I'd say you have extra commas.

manuito
11 Feb 2010, 12:02 PM
Extra commas?? where??

I add dynamically columns of portlets. I move the portlets to new configuration, and I want that after drop, save the new configuration.

For this I have to get all columns and Portlets to save the new configuration.
The methods of Portal class dont work.

Error, this.setSpacing is not a function
Error, portal.setSpacing(15) is not a function
Error, optConfigurar.setSpacing(15) is not a function
..............

Thanks.