How about multi-lines text in headers in version 2.0?

How about multi-lines text in headers in version 2.0?
I just cannot figure out how..., any advice?
March 19,
Hey Kevin,
Alex has posted some code I used for this.

obj.getRowTemplate().setClass("text", "wrap");
obj.getHeadersTemplate().setClass("text", "wrap");

The first line sets the test to wrap in each row in the grid.
The second line sets the text in the headers to wrap.

Here is the thing, as far as I can tell, you still have to set the row and header heights to accommodate more than one line. Otherwise, the wrapped text will not be visible.

To set the heights for the header and the row, I used:

obj.setHeaderHeight(34); // accounts for 2 lines in header
obj.setRowHeight(32); // accounts for 2 lines in row

There might be a better way to do this, but as of yet, I haven't figured it out. It would be great if AW has a response code that would tell if a particular row/column wrapped.

Hope this helps.

March 19,
Thank you very much.

March 19,

This topic is archived.

See also:

Back to support forum


Version 2

Looking for AW 2.6 ?
The old site is here.