|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
You would put "white-space:nowrap" in CellStyle to do that.
Thanks!
|
|
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?
|
|
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!
|
|
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
|
|
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!
|
|