PDA

View Full Version : Displaying some form fields in a column and some in the default way



adibhagra
23 Nov 2009, 11:52 PM
Hey Guys,

Is it possible to display some form fields in a column and some as rows,

when i change my form layout to 'column', the field labels get hidden and are not displayed :(

Thanks and regards,

Ice

Condor
24 Nov 2009, 12:04 AM
Each column should be a container with form layout, e.g.

{
xtype: 'textfield',
fieldLabel: 'Field 1'
},{
anchor: '0',
xtype: 'container',
layout: 'column',
defaults: {
columnWidth: 0.5,
xtype: 'container',
layout: 'form'
},
items: [{
items: {
xtype: 'textfield',
fieldLabel: 'Field 2'
}
},{
items: {
xtype: 'textfield',
fieldLabel: 'Field 3'
}
}]
},{
xtype: 'textfield',
fieldLabel: 'Field 4'
}

adibhagra
24 Nov 2009, 12:56 AM
thanks a lot condor ))