PDA

View Full Version : Complex Form formatting, seek help!



jerometam
13 Jun 2007, 11:23 PM
Hi all,

I'm a newbie to AJAX and Ext, attracted by the power of AJAX, I've decided to learn and transform a developing system using Ext~

I've read some example, and started to write my script.

I've a complex form written in HTML, formatted with Tables, having multiple columns, Column Span, and some cell have two or more input fields.

How can I render my form with Ext to achieve the aboce requirement...?

I've attached the current screen shot of my system.

jerometam
13 Jun 2007, 11:31 PM
What I looking for is
1. the way to put multi-column within a fieldset, and I will have stacked fieldsets
2. the ability to put 2 related input field side by side.

Can anybody give me some suggestion?

violinista
14 Jun 2007, 4:39 AM
Here is the pattern, if you want multiple columns:



var frmTest=new Ext.form.Form({/your own config options */});

frmTest.column({width:100, hideLabels:true},new Ext.form.TextField({/*your own config options*/ }));
frmTest.end();
frmTest.column({width:100, hideLabels:true}, new Ext.form.TextField({/*your own config options */}));
frmTest.end();

//... and so long...
If you realize the main concept, you can add as many columns as you need, and you can achieve form like yours. Also, look at the form examples, I found them so useful!

jerometam
17 Jun 2007, 9:25 PM
Here is the pattern, if you want multiple columns:



var frmTest=new Ext.form.Form({/your own config options */});

frmTest.column({width:100, hideLabels:true},new Ext.form.TextField({/*your own config options*/ }));
frmTest.end();
frmTest.column({width:100, hideLabels:true}, new Ext.form.TextField({/*your own config options */}));
frmTest.end();

//... and so long...
If you realize the main concept, you can add as many columns as you need, and you can achieve form like yours. Also, look at the form examples, I found them so useful!

Thank you for your suggestion! :D

But I found it unsuccessful if I want to put the column inside a fieldset. Is there any other method to have multiple column in a fieldset?

violinista
17 Jun 2007, 11:42 PM
I don't know really, I haven't tried. But why would you anyway put multiple columns into one fieldset?

jerometam
20 Jun 2007, 9:13 PM
I don't know really, I haven't tried. But why would you anyway put multiple columns into one fieldset?

I want my fieldset to be better organized. Just like to divided a form into two column in a table...

Thanks for your help~