PDA

View Full Version : combo don't show fieldlabel.



occiso
8 Nov 2010, 4:43 AM
hi,

I have a hiden combo with a fieldLabel. When I do


Ext.getCmp('nomTpd').setVisible(true);

Show me the input but not de label. żI must activate the label with another method?



var vNomTpd = new Ext.form.ComboBox({
id: 'nomTpd',
name: 'nomTpd',
ref: '../nomTpd',
fieldLabel: label['tipoproducto'],
labelSeparator: '',
hidden: true,
width: 210,
listWidth: 210,
tabIndex: 4,
editable: false,
mode: 'local',
forceSelection: true,
triggerAction: 'all',
store: stTipoProducto,
typeAhead: true,
displayField: 'desVal',
valueField: 'ideTpd',

})

plalx
8 Nov 2010, 12:13 PM
this config (fieldLabel) is only used when this Component is rendered by a Container which has been configured to use the FormLayout (http://dev.sencha.com/deploy/dev/docs/output/Ext.layout.FormLayout.html) layout manager (e.g. Ext.form.FormPanel (http://dev.sencha.com/deploy/dev/docs/output/Ext.form.FormPanel.html) or specifying layout:'form')

occiso
8 Nov 2010, 1:59 PM
ok, that's right. thanks.