Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to show a row of data table in two rows?

 
Fawad Ali
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I have a datatable which shows a list of objects. Each object is represented by a row of datatable's row. But the attributes of a row are about 20 which goes out side my display area. I want to show them inside the display area. On solution is that, I put css overflow attribute. But I do not want the sliders. So is there any way to show the long rows in 2 rows or more so that I am able to have all the content in my display area.
 
Vishal Chaudhry
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try specifying width on each outputText using stylesheet. This should limit the width and the text would be displayed in more than one line. Another thing which you can do is combine output from more than one field in the same column. This way you can reduce the width of the disaplyed row by increasing the height of each row.
 
Fawad Ali
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. That helped alot.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic