:: Home >>

Multiline text

Unfortunately it is not possible to wrap text in grid cells simply by using white-space: normal rule. This is because grid row needs white-space: nowrap and this setting is applied to all child elements as well (IE bug).

However you can get multiline text if you insert <br /> elements in your text:

var myData = [
    ["MSFT","Microsoft <br/> Corporation", "314,571.156"],
    ["ORCL", "Oracle <br/> Corporation", "62,615.266"],
    ["SAP", "SAP <br/> AG <br/> (ADR)", "40,986.328"]
];

Comments

8 Mar 06
Multiline text in column headers A (1)
15 Feb 06
Mix Multiline and single line columns problem krital (0)
18 Jan 06
problem in getting text style Raj (2)
22 Dec 05
Multiline bug - Alex, please try this example with xml data file and table.request() elsigh (3)
14 Nov 05
Row Height for Multi-Line Data Cells Dean (22)
21 Sep 05
wrap text in normal cells Stefan (3)
29 Mar 05
multiline cuts off still elsigh (2)

Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData