Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Alejandro Valverde on Aug 25, 2008 20:30
open dhtmlx forum
New line inside <cell> content

Hi I really need a way to display a new line (like html <br> tag) inside a cell content in the grid control, for example:

Cell content:
asdasdasdasdasdasdasdasdasdasdasda

I need something like this on the same cell content
asdasd
asdasdasdasdasdasda


Is there a way to send a row breaker through the XML content of the grid, then the grid control render a line breaker.


Thanks
Answer posted by Support on Aug 26, 2008 06:55
If you are using multiline mode, grid will automatically break long text ( if some whitespaces exists in text )
In any case, you can directly include br tags in necessary places

<cell><![CDATA[   some_text<br/>second_line  ]]><cell>
Answer posted by Alejandro Valverde on Aug 27, 2008 06:34
It doesn't work on the first <br/> for the rest works, for example:

line1line1line1line1line1<br/>line2line2line2
line2line2
lien3line3line3line3line3
lien4line4line4line3line4
Answer posted on Aug 27, 2008 06:47

Problem can't be reconstructed locally - all new line tags processed correctly - please check attached sample

If issue still occurs for you - please provide used data XML

Attachments (1)