:: Forum >>

Not able to display text with new lines (\n) in the grid

I have a shipper address like street no,city,zipcode etc.

Eg: Adidas,
New York,
USA - 001
Address is a multi line text, each line is in a new line.

When I try to set this text to the grid, grid is not able to display the text with new lines, and showing up javascript error.

Could any one suggest, what needs to be done?

- Sridhar
Sridhar
Thursday, April 22, 2010
Do you escape javascript special characters when writing data on the server, i.e. new line -> \n, quote -> \" etc. ?
Alex (ActiveWidgets)
Friday, April 23, 2010
Yes, we do escape javascript special characters.
Monday, April 26, 2010
Check your html page source where you are writing the data array. You should see the strings on one line with "\n" symbols inside, not actual line breaks.
Alex (ActiveWidgets)
Monday, April 26, 2010

This topic is archived.


Back to support forum

Forum search