PDA

View Full Version : Group columns under headline



Dirk1
25 May 2011, 10:56 PM
Hi,

I searched in google but couldn't find any answer - perhaps I used the wrong keywords.

I have a grid and I would like to give some columns a "grouped headline". E.g. I have a grid that shows an User Profile:



Name | Prename | Date of Birth | Street | House No. | Postcode | Location | Telephone | Email
Now I'd like to group Name, Prename, Date of Birth under the Headline "Personal Information", Street, House No., Postcode, Location under the Headline "Address" and Telephone and Email under "Contact":



Personal Information | Address | Contact
Name | Prename | Date of Birth | Street | House No. | Postcode | Location | Telephone | Email
Is there any possibility to solve this problem?

Thanks and best regards,

Dirk

skirtle
28 May 2011, 9:13 AM
Take a look at some of the examples:

http://dev.sencha.com/deploy/ext-3.3.1/examples/

This one in particular looks like it might be what you want:

http://dev.sencha.com/deploy/ext-3.3.1/examples/grid/ColumnHeaderGroup.html

You might also be interested to look at the PivotGrid examples.

Dirk1
31 May 2011, 3:34 AM
Thanks a lot! That's just what I wanted. Next time I should watch the Examples first instead of googleing ;)

Thanks and best wishes,

Dirk