You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by V SANTOSH PAVAN RAJU Bs <pa...@gmail.com> on 2012/11/10 11:12:51 UTC

how to fit multiple lines in a tableview row

Hi,
Iam trying enter some information in a table view which was very long. So i
tried the following approach to make multiple lines fit in a tableview cell.
<TableView.Column width="1*" headerData="errorMsg" name="error">
<cellRenderer>
<content:TableViewCellRenderer styles="{wrapText:true}" />
</cellRenderer>
</TableView.Column>

and in tableview styles i made variableRowHeight:true.

But in result the text in tableview cell was not properly arranged(it like
in the attachment). Can you help me where i was wrong and what additional
styles that i need to add to the tableview.

-- 
Thanks & Regards
B.S.V.S.Pavan Raju.
Skype: skype_pavan1
Hyderabad.

RE: how to fit multiple lines in a tableview row

Posted by Santosh <pa...@gmail.com>.
Thankyou Roger, It is working now.



-----
santosh pavan raju
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/how-to-fit-multiple-lines-in-a-tableview-row-tp4022220p4022222.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

RE: how to fit multiple lines in a tableview row

Posted by "Roger L. Whitcomb" <Ro...@actian.com>.
Hi, 

                I think you're going to need to use
TableViewTextAreaCellRenderer instead of TableViewCellRenderer.  The
latter does not support wrapping text (even though it is based on a
Label).

 

HTH,

~Roger Whitcomb

 

 

From: V SANTOSH PAVAN RAJU Bs [mailto:pavanraju.mca@gmail.com] 
Sent: Saturday, November 10, 2012 2:13 AM
To: user@pivot.apache.org
Subject: how to fit multiple lines in a tableview row

 

Hi,

Iam trying enter some information in a table view which was very long.
So i tried the following approach to make multiple lines fit in a
tableview cell.

<TableView.Column width="1*" headerData="errorMsg" name="error">

<cellRenderer>

<content:TableViewCellRenderer styles="{wrapText:true}" />

</cellRenderer>

</TableView.Column>

 

and in tableview styles i made variableRowHeight:true.

 

But in result the text in tableview cell was not properly arranged(it
like in the attachment). Can you help me where i was wrong and what
additional styles that i need to add to the tableview.

 

-- 
Thanks & Regards

B.S.V.S.Pavan Raju.

Skype: skype_pavan1

Hyderabad.