:: Forum >> Version 1 >>

Multiline bug - Alex, please try this example with xml data file and table.request()

More information on this topic is available in the documentation section: /active.howto.style.columns/multiline-text.html.

I took the source of the /grid.howto.style.columns/multiline-text.html page, and changed the source of the data to a xml file loaded via table.request(), and then obj.setDataModel(table);

The xml file is:
<rows>
<row>
<col0>MSFT</col0><col1>Microsoft <br/> Corporation</col1> <col2>314571.156</col2>
</row>
<row>
<col0>ORCL</col0> <col1>Oracle <br/> Corporation</col1> <col2>62615.266</col2>
</row>
<row>
<col0>SAP</col0> <col1>SAP <br/> AG <br/> (ADR)</col1> <col2>40986.328</col2>
</row>
</rows>

Now the lines no longer wrap.

Are there any special properties that might fix this in the table template? Maybe I'll see if I can't find something in there that looks right.. Thanks Alex, your component rules!
elsigh
Wednesday, March 30, 2005
I think you should use &lt;br/&gt; instead of <br/> :

<rows>
    <
row>
        <
col0>MSFT</col0><col1>Microsoft &lt;br/&gtCorporation</col1> <col2>314571.156</col2>
    </
row>
    <
row>
        <
col0>ORCL</col0> <col1>Oracle &lt;br/&gtCorporation</col1> <col2>62615.266</col2>
    </
row>
    <
row>
        <
col0>SAP</col0> <col1>SAP &lt;br/&gtAG &lt;br/&gt; (ADR)</col1> <col2>40986.328</col2>
    </
row>
</
rows>

 
otherwise <br/> is just empty XML node and not part of the label text.
Alex (ActiveWidgets)
Wednesday, March 30, 2005
That's the money.
elsigh
Wednesday, March 30, 2005
I placed this into xmlDataIsland but the text shows up in a single line with <br/> in it.
kbazsi
Thursday, December 22, 2005



This topic is archived.

Back to /active.howto.style.columns/multiline-text.html

Documentation:

Forum search