Dumbledore
6 Jun 2007, 5:28 AM
How can i set that only the first row of a fieldset have labels and all other Form.Elements should have no labels? I know that i can hide the labels, but when i have the labelAlign: "top" then the labels are only hidden not removed.
So i have much space between the rows - how can i remove this space?
var topRight = new Ext.form.Column({width:200}); // open column, without auto close
formRules.start(topRight);
var protocol = new Ext.data.SimpleStore({
fields: ['protokoll', 'protokoll_value'],
data: [['tcp', 'tcp'], ['udp', 'udp'],['egp', 'egp'],['esp', 'esp'],['igmp', 'igmp'], ['gre', 'gre'],['rsvp', 'rsvp'],['vines', 'vines']]
});
formRules.add(
new Ext.form.ComboBox({
fieldLabel: 'Protokoll',
hiddenName:'state',
store: protocol,
displayField:'protokoll',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
selectOnFocus:true,
width:175,
allowBlank:true
})
);
for(var i = 0; i <= 8; i++){
formRules.add(
new Ext.form.ComboBox({
labelSeparator:'',
labelWidth:0,
hiddenName:'state',
store: protocol,
displayField:'protokoll',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
selectOnFocus:true,
width:175,
allowBlank:true
})
);
}
formRules.end(topRight);
formRules.end(top);
So i have much space between the rows - how can i remove this space?
var topRight = new Ext.form.Column({width:200}); // open column, without auto close
formRules.start(topRight);
var protocol = new Ext.data.SimpleStore({
fields: ['protokoll', 'protokoll_value'],
data: [['tcp', 'tcp'], ['udp', 'udp'],['egp', 'egp'],['esp', 'esp'],['igmp', 'igmp'], ['gre', 'gre'],['rsvp', 'rsvp'],['vines', 'vines']]
});
formRules.add(
new Ext.form.ComboBox({
fieldLabel: 'Protokoll',
hiddenName:'state',
store: protocol,
displayField:'protokoll',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
selectOnFocus:true,
width:175,
allowBlank:true
})
);
for(var i = 0; i <= 8; i++){
formRules.add(
new Ext.form.ComboBox({
labelSeparator:'',
labelWidth:0,
hiddenName:'state',
store: protocol,
displayField:'protokoll',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
selectOnFocus:true,
width:175,
allowBlank:true
})
);
}
formRules.end(topRight);
formRules.end(top);