3.2.0

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
April 22,
Do you escape javascript special characters when writing data on the server, i.e. new line -> \n, quote -> \" etc. ?
Alex (ActiveWidgets)
April 23,
Yes, we do escape javascript special characters.
April 26,
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)
April 26,

This topic is archived.

See also:


Back to support forum