PDA

View Full Version : SOLVED[3.0.0]Invisible Combobox, why?



axelaxel
17 Sep 2009, 6:02 AM
hi guys,
i have this formpanel and a combobox inside, but the combobox is not visible.
and i don't understand why.
can anybody help me??

thank you






// pannello che contiene le directory e l'albero categorie
var comboPanel = new Ext.form.FormPanel({
id: 'combo-panel',
region: 'center',
height: 200,
labelWidth: 75, // label settings here cascade unless overridden
frame:true,
title: 'Scelta Preview',
defaults: {width: 100},
items: cbPreview
});




var cbPreview = new Ext.form.ComboBox({
id: 'preview-combobox',
mode: 'remote',
name : 'idProcessusParam',
editable: false,
triggerAction: 'all',
typeAhead: true,
emptyText:'Select...',
blankText:'Select...',
allowBlank: false,
lazyRender: false,
displayField: 'TPR_Descrizione',
valueField: 'TPR_Descrizione',
autoWidth: true,
store: new Ext.data.JsonStore({
url: '/manager/spaw2/ajax/newImage.php',
fields: ['TPR_Descrizione', 'TPR_ID'],
root: 'results',
autoLoad: true,
baseParams: {
action: 'get_preview'
}
}),
fieldLabel: 'Preview'
});

axelaxel
17 Sep 2009, 6:09 AM
comboPanel.add({
layout: 'form',
labelWidth: 10,
columnWidth: .20,
border: false,
bodyStyle: '',
items:[cbPreview]
});