:: Documentation >>

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

Multiline text in column headers A (1)
Mix Multiline and single line columns problem krital (0)
problem in getting text style Raj (2)
Multiline bug - Alex, please try this example with xml data file and table.request() elsigh (3)
Row Height for Multi-Line Data Cells Dean (22)
wrap text in normal cells Stefan (3)
multiline cuts off still elsigh (2)

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5