PDA

View Full Version : Trying to create a form which...



khbuex
25 Feb 2010, 3:31 AM
Looks like this:
http://img34.imageshack.us/img34/6859/asdasdzxc.jpg
My paint skills are not that good :))

How can I do this?
I try to create it with table layout, but then the form layout isn't working well, and it doesn't looks good.

Thanks!

num6java
25 Feb 2010, 9:27 AM
I don't see any image...

wm003
26 Feb 2010, 1:31 AM
try using a column layout where each column has a form layout

tvanzoelen
26 Feb 2010, 1:32 AM
You create a FormPanel and give it a table layout.

in the config you put something like

layout: ' table'
layoutConfig: { columns: 2}

then you create two Fieldsets

and the fieldsets you give the form layout

layout: 'form'

In the first fieldset you add the form items with given labels, and in the second fieldset you hide the labels.

Then the only thing you have to do is put the header in the first row of the tables. Adding a FieldLabel as the first item in both fieldsets will probably do the trick.