PDA

View Full Version : Mixed TableColumn alignment header/body



jraue
1 Apr 2009, 12:49 AM
Hi,

is there an elegant way to change the horizontal alignment within a TableColumn, e.g. to have the column header center-aligned and the values left-aligned? TableColumn.setAlignment would affect both.

Thanks,

Joachim

jmhwhite2001
16 Jun 2009, 5:25 AM
I'm actually trying to investigate other ways, but you can do this:

When creating the column config for a column, make the name something like:

<p align=\"center\">Your Text</p>

Now, you can have a left-justified text, but have header centered.

jmhwhite2001
16 Jun 2009, 5:26 AM
There actually is no problem, I misspoke.

jmhwhite2001
16 Jun 2009, 5:28 AM
Reference:

http://extjs.com/forum/showthread.php?t=59564&highlight=header