Panel with two columns and xtype fieldset

Discuss about Group-Office development here

Moderator: Developers

Thomas
Posts: 57
Joined: Fri Jul 24, 2009 1:52 pm

Panel with two columns and xtype fieldset

Postby Thomas » Wed Mar 24, 2010 3:23 pm

Hi @ all,

i hope you can imagin what i want to do like i describe here:

There is a panel with some form-elements. i want to have two columns so that there are two fields beside each other. To do this i have following code:

Code: Select all

        config.autoScroll=true;
	config.border=false;
	config.hideLabel=true;
	config.layout='column';	
	config.labelWidth=120;
	config.title= 'Zahlungen';
	config.cls='go-form-panel';
        config.items=[{			
			columnWidth: .5,
			layout: 'form',
			border: false,
			//bodyStyle:'padding-right:5px',
			waitMsgTarget:true,
			//defaults: {anchor:'100%'},
			items: [
				new Ext.form.DateField({
					fieldLabel: 'Title1',
					name: 'value1',
					format: GO.settings['date_format']
				})
			]
		},{
			columnWidth: .5,
			layout: 'form',
			border: false,
			//bodyStyle:'padding-left:5px',
			waitMsgTarget:true,
			//defaults: {anchor:'100%'},
			items: [
				new Ext.form.DateField({
					fieldLabel: 'Title2',
					name: 'value2',
					format: GO.settings['date_format']
				})
			]
		}]
These code displays two Datefields in a row. Now i want to group this with a fieldset. Then there should be another row with a fieldset with two columns and so on...

Can anyone explain how to do this?

Thanks in advance...
mschering
Site Admin
Site Admin
Posts: 8284
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: Panel with two columns and xtype fieldset

Postby mschering » Thu Mar 25, 2010 4:24 pm

Please look at the ExtJS examples. You can easily put a fieldset in a column layout.
Best regards,

Merijn Schering
Intermesh
Thomas
Posts: 57
Joined: Fri Jul 24, 2009 1:52 pm

Re: Panel with two columns and xtype fieldset

Postby Thomas » Fri Apr 16, 2010 3:37 pm

Thanx, Merijn.

Got it.

Who is online

Users browsing this forum: No registered users and 2 guests