Wrapping text in cells and headers
Just wondering is there any update on this???
Now you can only wrap text if you insert <br /> tags into the text :-(
I used the <br/> tag to wrap text in headers and in normal cells. Then I used obj.setColumnHeaderHeight("40px"); to be able to see two rows in the headers. But how do I make the rest of the cells higher so I can see the whole wrapped text? Is there a setting for automatically selecting the correct cell height (that displays all the wrapped text)?
I have an array for my column headers and I formatted one column header as follows:
var columnHeaders = [ "Date", "Cycle", "Submitted<br/>#", "Submitted<br/>$" ];
and then I set the column height to 60 just to make sure there is enought space:
But what happens is, that the text ends where the <br/> is inserted and the following text is not displayed at all.
Very impressive product!
I noticed in your above post of Thursday, June 24, 2004 that it is planned to have the wrapping text issue 'fixed' for 2.0.
I downloaded the 2.0 beta 1 and found the "multi-line text (wrap)" section.
The "auto-wrap" on both initial display and column resize works in IE6 (kudos; no <br/> needed). However, the cell/row height does not auto-resize on a row-by-row basis to the appropriate height to display the wrapped text in the 'worst-case cell' for that row (i.e. like the auto word wrap feature of an HTML Table). I only see a manual "all or nothing" approach in the example code.
Unfortunately, my customer base will demand this functionality: each row must be able to individually auto-resize to the correct height.
I know that this is probably asking a lot (I had a lot of frustration myself getting a custom CSS/JS based grid working in IE for my customers). However, if you can do this, I am sure that you'd really impress a lot of people! I know that I would have an easy sell to my customers.
Do you think that there is any hope of this happening prior to official release of 2.0?
Thanks, and again great job,
P.S. A fall-back option might be for me to fix each column width, disable the column resize feature, do my own <br/>'s as needed, calculate the necessary row/cell height and set each row height as needed...uh...assuming that I can set each row height individually prior to initial display.
So, if the auto-resize feature is not an option, is this type of operation doable?
If so, can you please give me heads-up on the best way to go about this with your product...
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.