-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How can I wrap the string in the table?
I mean currently my application display the definition in a single line but I want to introduce a line break or wrap the string up.
How can I do that?
Thanks,
Dino
sclass="word-wrap"
and try a \n sequence in your text : "This is the \n\n second line"
Stephan
@din
If it's possible to read HTML tag, you can also try to write the sentence like "Hello<br/>World".
/Joy
Thanks terrytornado.
It works great for labels when placed inside grid row.
How can we make the grid column header with multiline string? Because, am having many columns in a grid and wants to display within a small portion.
Thanks.
Thanks for all the posts, but the real issue with me is I am getting definition of few things and displaying those so can't introduce a line break or new line character in that case can I put a cap like after 100 words it should be in the next line or so?
Hmmmmmmmm, you can write a small text-parser .
Parse the whole text and look for the count of signs for the first 100 words. and made than a linebreak.
Take the next count of signs with the remembered first line sign-counter and go back if to
the previous space sign. Add a linebreak to the string. These are the second line.
And so on.
regards
Stephan
Asked: 2009-08-21 06:25:18 +0800
Seen: 486 times
Last updated: Aug 24 '09