PDA

View Full Version : 4 column in 1



same66
23 Dec 2010, 5:47 AM
Hi,

I'm coding an application with a grid.
I want this result :

http://img138.imageshack.us/i/graphk.jpg/

I want to know if is possible to cut one column in 4 (line 2 on my screen).

thanks ! :D

Condor
23 Dec 2010, 5:56 AM
Are these four columns with a grouped column header or is this a single column with 4 rectangles?

That second one would be done with a column renderer.

steffenk
23 Dec 2010, 5:58 AM
i also think a column renderer with XTemplate seems to be the best solution if it's only graphical. With click actions on different areas in this column you have to do some more.

same66
23 Dec 2010, 6:09 AM
Thanks for your help.
It's 4 rectangles in a column but, the number of rectangles and the color is dynamic...

A renderer allows to do that ?

Condor
23 Dec 2010, 6:16 AM
A renderer can return any kind of html, so you simply need to return a set of divs with a style that contains width in %, float:left and a background-color.

same66
23 Dec 2010, 6:23 AM
Perfect !

I try that and I say if it's ok.

Thanks :D