Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rohin on Dec 11, 2008 06:10
open dhtmlx forum
Multiline cell in dhtmlx

In DHTMLX grid we want to show US address format in one of the cell breaking into multiline e.g.

123 Main St
Apt# 5
Landsdale, PA 12345

However when I use the grid enable multiline the format is not retained. It appears something like this

123 Main St
Apt# 5 Landsdale,
PA 12345

Can you please let me know how can I break text across lines in a grid while maintaing the format?
Answer posted by Support on Dec 11, 2008 07:26
The grid use auto-size behavior, so it move text on next line only if it can't be placed on current line. 
If you want to provide preformatted structure you can use 

<cell type="ro"><![CDATA[
123 Main St <br/>
Apt# 5 <br/>
Landsdale, PA 12345<br/>
]]></cell>