:: Forum >>

Mulit line text in a cell

Using version 1 I had an XML file which had &lt;br&gt; (<br>) to give me a line break in my cell. I tried to do that with the XML examples and it never worked, it just outputed the text with "<br>" in it. I did however put a <br> in an array example and the line break worked fine...any suggestions?
Tuesday, February 21, 2006
I forgot to mention, I am trying this in Version 2 and it is not working.
Tuesday, February 21, 2006
&lt;br&gt; and <br> are not the same. You use &lt; when you really want to see the "<". If you put &lt;br&gt; in your array example I would expect it to display the text "<br>" instead of adding a line break.

I haven't looked at the XML examples but somehow you need to really send the "<" and ">". Maybe you could do that by using an escape function and then unescaping in the grid.

Hope this gets you going in the right direction. Sorry I don't know more about it.
Rob Francis
Tuesday, February 21, 2006
With version one, &lt;br&gt; worked fine in XML, but <br> worked in the array! Somehow the XML is being treated differently.

if I put <br> in the XML file the grid doesn't load properly
Tuesday, February 21, 2006
<br> is not valid XML. Have you tried using <br/>?
Tuesday, February 21, 2006
That doesn't work either!
Maybe the best thing to do is put some spaces in there and turn on text wrap.
BenjaminS
Wednesday, February 22, 2006
Text wrap made it very ugly looking. hmm...any other suggestions?
BenjaminS
Wednesday, February 22, 2006
What I need is a character that will tell ActiveWidgets that there is a line break in the string I take in. Has nothing to do with XML I don't believe.

I tried \n and "\n" and '\n'. ....hmm
BenjaminS
Wednesday, February 22, 2006
You need to assign the HTML format (AW.Formats.HTML) to the applicable column. The xml data of the column will be treated as HTML. But a word of warning, multiline HTML cells cause the vertical scrollbar to dissappear.
Neil Craig
Tuesday, July 4, 2006

This topic is archived.


Back to support forum

Forum search