Welcome Guest Search | Active Topics | Sign In | Register

Do not wrap text in TableCell Options
nategta
Posted: Monday, July 15, 2013 10:58:46 AM
Rank: Newbie
Groups: Member

Joined: 7/15/2013
Posts: 3
Is there a way to specify that text should not wrap within a cell? I want the contents to extend to the next cells unless specified.

Thanks
eo_support
Posted: Monday, July 15, 2013 12:31:40 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You would put "white-space:nowrap" in CellStyle to do that.

Thanks!
nategta
Posted: Monday, July 15, 2013 12:54:09 PM
Rank: Newbie
Groups: Member

Joined: 7/15/2013
Posts: 3
Thank you for replying so quickly. However, I don't see a "CellStyle" property on the AcmTableCell object?
eo_support
Posted: Monday, July 15, 2013 1:17:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

I thought you were using our EO.Web Grid. With AcmTableCell, I don't think you need to do anything special. It should automatically wrap the text. If it is not wrapping, please post a small sample code and we will be very happy to look into it.

Thanks!
nategta
Posted: Monday, July 15, 2013 2:07:16 PM
Rank: Newbie
Groups: Member

Joined: 7/15/2013
Posts: 3
You're correct, it does automatically wrap. I want to prevent it from wrapping though. I have text that is longer than the cell but it does contain whitespace, so it automatically wraps it when it can. I would prefer that the text extend into the adjacent cells instead.

EDIT: I figured out a workaround by replacing spaces with a non-breaking space Unicode character ("\u00A0"). However, if there is a more appropriate solution, please let me know.

Thanks
eo_support
Posted: Monday, July 15, 2013 3:45:12 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

That's a very good idea. We haven't thought about it. I think that's the best solution. Thanks for sharing!

Alternatively, you can use the HTML to PDF feature. The HTML to PDF feature is much more powerful because you can use HTML and CSS to format your output.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.