Q:

Extjs form should look like a table

i want to create  a form in extjs which can have a combobox, checkbox etc.but it should look like it is inside a grid or a table. I can use property grid, but it would become complicated for my application.
fieldName   combobox
fieldName   checkbox
fieldName   combobox
fieldName   textfield

Also, I want all the even rows with a particular background color and all odd rows with some other background color. How can I achieve this. thanks

A:

for your second question with the colors:
add the cls: y-field-striped property to every field, this will add a css class to each row.
now with some custom css:
.y-field-striped:nth-child(2n) { background-color: #eee } /* even */
.y-field-striped:nth-child(2n+1) { background-color: #aaa } /* odd */

fiddle: http://jsfiddle.net/Jandalf/8CJ7n/

