“\n” works if you assign it in AS.

 

For declarative style you can force a new line with {newline}

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of Sreejith Unnikrishnan
Sent: Monday, May 16, 2005 9:42 AM
To: [email protected]
Subject: Re: [flexcoders] Datagrid word wrap- it isnt working.

 

Hari,

A bit confused ... does the variable declaration really work?

I was assuming that you have to use something like

var totalColumnName = "Total"
newLine"Reserves";

for it to render correctly. I have a feeling that the
\n would not work.
Can somebody clarify!

Nithya, and also you have to specify the height for the header!

       <mx:DataGrid width="100%" height="100%" variableRowHeight="true"
headerHeight="30">

Regards
Sree

Doodi, Hari - BLS CTR wrote:

We had the same problem but the way we did roundabout to this is - declare a var with a value with "\n" char in it and then bind this var to datagrid headertext property as shown below.. It did work for me.

 

var ordappl="Order\nAppl";

.

.

.

 

<mx:DataGridColumn headerText="{ordappl}" columnName="order" textAlign="left" />

Thanks!
Hari

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Matt Chotin
Sent: Monday, May 16, 2005 2:23 AM
To: [email protected]
Subject: RE: [flexcoders] Datagrid word wrap- it isnt working.

 

Have you set variableRowHeight to true?

 


From: [email protected] [mailto:[email protected]] On Behalf Of nithya karthik
Sent: Sunday, May 15, 2005 10:14 PM
To: flexcoders
Subject: [flexcoders] Datagrid word wrap- it isnt working.

 

Hai,

       when i give wordwrap="true" in a datagrid,  it isnt wraping the text... May i know the reason and the way  to rectify it?

I used something like this:

 <mx:DataGridColumn columnName="Total" headerText="Total reserves" wordWrap="true"/>

I want 'Total' in the first line and 'reserves' in the next line of the header.. How to do this?


Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now

 

 



Yahoo! Groups Links

Reply via email to