3.2.0

ColumnHeader with double line text

Hi, I need to set the header's text not in the tradicional way, that appears in a single line, I need it with double line text appearence.

e.g.: ________
| Header |
| Column |

I set the column height in 200% or 35 px and adjust the width but the header's text already appears in single line.

It's posible to set the header's text in double line?

Jonas Boering
March 31,
I find that in a post:

The header titles in our application use either 1 or 2 lines of text. When there is a single line, we prefer it to be on the second line. This is accomplished using the following syntax:

var myColumns = ["<BR>Size", "Company<BR>Part Number", "Universal<BR>Part Number", "Max O.D.<BR>M", "<BR>C", "<BR>H", "<BR>G", "Approx<BR>Wt.(lb)"];

But in the last version of aw v2.0 the <BR> doesn't work!

The aw v2.0 use another tag?
Jonas Boering
March 31,
There is .aw-text-wrap class which should be applied to the cell or header parent template and enables text wrapping.

obj.setHeaderHeight(40);
    obj.getHeadersTemplate().setClass("text", "wrap");


Alex (ActiveWidgets)
March 31,
Added two examples -

http://www.activewidgets.com/grid.howto.headers/multiline-text.html
http://www.activewidgets.com/grid.howto.cells/multiline-text.html
Alex (ActiveWidgets)
March 31,
Thank you very much, it's work perfectly
Jonas Boering
March 31,

This topic is archived.

See also:


Back to support forum