3.0.4

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

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
March 30,
I think you should use &lt;br/&gt; instead of <br/> :

<rows>
    <row>
        <col0>MSFT</col0><col1>Microsoft &lt;br/&gt; Corporation</col1> <col2>314571.156</col2>
    </row>
    <row>
        <col0>ORCL</col0> <col1>Oracle &lt;br/&gt; Corporation</col1> <col2>62615.266</col2>
    </row>
    <row>
        <col0>SAP</col0> <col1>SAP &lt;br/&gt; AG &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)
March 30,
That's the money.
elsigh
March 30,
I placed this into xmlDataIsland but the text shows up in a single line with <br/> in it.
kbazsi
December 22,

This topic is archived.

See also:


Back to support forum